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:
commit
401578ed7e
|
@ -20,16 +20,23 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flask-restx";
|
pname = "flask-restx";
|
||||||
version = "0.3.0";
|
version = "0.4.0";
|
||||||
|
|
||||||
# Tests not included in PyPI tarball
|
# Tests not included in PyPI tarball
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "python-restx";
|
owner = "python-restx";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
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 ]
|
propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
|
||||||
++ lib.optionals isPy27 [ enum34 ];
|
++ lib.optionals isPy27 [ enum34 ];
|
||||||
|
|
||||||
|
@ -42,6 +49,8 @@ buildPythonPackage rec {
|
||||||
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
"--deselect=tests/test_logging.py::LoggingTest::test_override_app_level"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportCheck = [ "flask_restx" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
|
homepage = "https://flask-restx.readthedocs.io/en/${version}/";
|
||||||
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
description = "Fully featured framework for fast, easy and documented API development with Flask";
|
||||||
|
|
Loading…
Reference in a new issue