python38Packages.flask-restx: 0.4.0 -> 0.5.1
This commit is contained in:
parent
6e4c36b3f7
commit
9e1267fad1
1 changed files with 19 additions and 14 deletions
|
@ -8,8 +8,6 @@
|
||||||
, pytz
|
, pytz
|
||||||
, faker
|
, faker
|
||||||
, six
|
, six
|
||||||
, enum34
|
|
||||||
, isPy27
|
|
||||||
, mock
|
, mock
|
||||||
, blinker
|
, blinker
|
||||||
, pytest-flask
|
, pytest-flask
|
||||||
|
@ -20,27 +18,34 @@
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "flask-restx";
|
pname = "flask-restx";
|
||||||
version = "0.4.0";
|
version = "0.5.1";
|
||||||
|
|
||||||
# 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 = "sha256-jM0QJ/klbWh3qho6ZQOH2n1qaguK9C98QIuSfqpI8xA=";
|
sha256 = "18vrmknyxw6adn62pz3kr9kvazfgjgl4pgimdf8527fyyiwcqy15";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
propagatedBuildInputs = [
|
||||||
# https://github.com/python-restx/flask-restx/pull/341
|
aniso8601
|
||||||
substituteInPlace requirements/install.pip \
|
flask
|
||||||
--replace "Flask>=0.8, <2.0.0" "Flask>=0.8, !=2.0.0" \
|
jsonschema
|
||||||
--replace "werkzeug <2.0.0" "werkzeug !=2.0.0"
|
pytz
|
||||||
'';
|
six
|
||||||
|
werkzeug
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [ aniso8601 jsonschema flask werkzeug pytz six ]
|
checkInputs = [
|
||||||
++ lib.optionals isPy27 [ enum34 ];
|
blinker
|
||||||
|
faker
|
||||||
checkInputs = [ pytestCheckHook faker mock pytest-flask pytest-mock pytest-benchmark blinker ];
|
mock
|
||||||
|
pytest-benchmark
|
||||||
|
pytest-flask
|
||||||
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--benchmark-disable"
|
"--benchmark-disable"
|
||||||
|
|
Loading…
Reference in a new issue