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:
parent
27bd3e3529
commit
ad157e04b8
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue