3
0
Fork 0
forked from mirrors/nixpkgs

python310Packages.flask-caching: Relax cachelib constraint, fix tests

Tests were broken, since flask did not propagate asgiref anymore, when
it was moved into an optional depencency in 3f1c8de7.
This commit is contained in:
Martin Weinelt 2023-03-12 19:43:57 +01:00
parent 27bd3e3529
commit ad157e04b8
No known key found for this signature in database
GPG key ID: 87C1E9888F856759

View file

@ -5,6 +5,7 @@
, fetchPypi
, cachelib
, flask
, asgiref
, pytest-asyncio
, pytest-xprocess
, pytestCheckHook
@ -21,12 +22,18 @@ buildPythonPackage rec {
hash = "sha256-JLYMVS1ZqWBcwbakLFbNs5qCoo2rRTK77bkiKuVOy04=";
};
postPatch = ''
substituteInPlace setup.py \
--replace "cachelib >= 0.9.0, < 0.10.0" "cachelib"
'';
propagatedBuildInputs = [
cachelib
flask
];
nativeCheckInputs = [
asgiref
pytest-asyncio
pytest-xprocess
pytestCheckHook