Merge pull request #128980 from dotlambda/flask-restx-0.4.0

pythonPackages.flask-restx: 0.3.0 -> 0.4.0
This commit is contained in:
Mario Rodas 2021-07-03 07:38:01 -05:00 committed by GitHub
commit 401578ed7e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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";