Merge pull request #137372 from risicle/ris-flask-restx-0.5.1

authored by Sandro and committed by GitHub 1a6243f4 5544ebe5

+19 -14
+19 -14
pkgs/development/python-modules/flask-restx/default.nix
··· 8 8 , pytz 9 9 , faker 10 10 , six 11 - , enum34 12 - , isPy27 13 11 , mock 14 12 , blinker 15 13 , pytest-flask ··· 20 18 21 19 buildPythonPackage rec { 22 20 pname = "flask-restx"; 23 - version = "0.4.0"; 21 + version = "0.5.1"; 24 22 25 23 # Tests not included in PyPI tarball 26 24 src = fetchFromGitHub { 27 25 owner = "python-restx"; 28 26 repo = pname; 29 27 rev = version; 30 - sha256 = "sha256-jM0QJ/klbWh3qho6ZQOH2n1qaguK9C98QIuSfqpI8xA="; 28 + sha256 = "18vrmknyxw6adn62pz3kr9kvazfgjgl4pgimdf8527fyyiwcqy15"; 31 29 }; 32 30 33 - postPatch = '' 34 - # https://github.com/python-restx/flask-restx/pull/341 35 - substituteInPlace requirements/install.pip \ 36 - --replace "Flask>=0.8, <2.0.0" "Flask>=0.8, !=2.0.0" \ 37 - --replace "werkzeug <2.0.0" "werkzeug !=2.0.0" 38 - ''; 31 + propagatedBuildInputs = [ 32 + aniso8601 33 + flask 34 + jsonschema 35 + pytz 36 + six 37 + werkzeug 38 + ]; 39 39 40 - propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ] 41 - ++ lib.optionals isPy27 [ enum34 ]; 42 - 43 - checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ]; 40 + checkInputs = [ 41 + blinker 42 + faker 43 + mock 44 + pytest-benchmark 45 + pytest-flask 46 + pytest-mock 47 + pytestCheckHook 48 + ]; 44 49 45 50 pytestFlagsArray = [ 46 51 "--benchmark-disable"