From ad157e04b88d49a1d42af1bded18a1d8f6b6e814 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 12 Mar 2023 19:43:57 +0100 Subject: [PATCH] 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. --- pkgs/development/python-modules/flask-caching/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/python-modules/flask-caching/default.nix b/pkgs/development/python-modules/flask-caching/default.nix index 928d5d60478b..08ff5d808f06 100644 --- a/pkgs/development/python-modules/flask-caching/default.nix +++ b/pkgs/development/python-modules/flask-caching/default.nix @@ -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