diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2021-07-03 07:38:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-03 07:38:01 -0500 |
commit | 401578ed7e4d577c9717ce2c342d9bdab42208ec (patch) | |
tree | 6a3ffb06b7d05300345bf249be279cabe21a7cef /pkgs/development/python-modules | |
parent | 57b2252e8ca3806d711b6333864e96acb7ef2875 (diff) | |
parent | 218bd6c625682554f8c3ab0f6c9b30eed5616ad4 (diff) | |
download | nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar.gz nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar.bz2 nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar.lz nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar.xz nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.tar.zst nixpkgs-401578ed7e4d577c9717ce2c342d9bdab42208ec.zip |
Merge pull request #128980 from dotlambda/flask-restx-0.4.0
pythonPackages.flask-restx: 0.3.0 -> 0.4.0
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r-- | pkgs/development/python-modules/flask-restx/default.nix | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/flask-restx/default.nix b/pkgs/development/python-modules/flask-restx/default.nix index e1de7bf0d3b..4d0d89d0f14 100644 --- a/pkgs/development/python-modules/flask-restx/default.nix +++ b/pkgs/development/python-modules/flask-restx/default.nix @@ -20,16 +20,23 @@ buildPythonPackage rec { pname = "flask-restx"; - version = "0.3.0"; + version = "0.4.0"; # Tests not included in PyPI tarball src = fetchFromGitHub { owner = "python-restx"; repo = pname; rev = version; - sha256 = "0aj13nd3z71gb8c2kqiaz3f9k7jr0srlvrsx8hpz4nkpki8jiz2s"; + sha256 = "sha256-jM0QJ/klbWh3qho6ZQOH2n1qaguK9C98QIuSfqpI8xA="; }; + postPatch = '' + # https://github.com/python-restx/flask-restx/pull/341 + substituteInPlace requirements/install.pip \ + --replace "Flask>=0.8, <2.0.0" "Flask>=0.8, !=2.0.0" \ + --replace "werkzeug <2.0.0" "werkzeug !=2.0.0" + ''; + propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ] ++ lib.optionals isPy27 [ enum34 ]; @@ -42,6 +49,8 @@ buildPythonPackage rec { "--deselect=tests/test_logging.py::LoggingTest::test_override_app_level" ]; + pythonImportCheck = [ "flask_restx" ]; + meta = with lib; { homepage = "https://flask-restx.readthedocs.io/en/${version}/"; description = "Fully featured framework for fast, easy and documented API development with Flask"; |