diff --git a/pkgs/development/python-modules/gorilla/default.nix b/pkgs/development/python-modules/gorilla/default.nix index c7d884bd397d..e1391e11f605 100644 --- a/pkgs/development/python-modules/gorilla/default.nix +++ b/pkgs/development/python-modules/gorilla/default.nix @@ -2,6 +2,8 @@ , buildPythonPackage , fetchPypi , pytestCheckHook +, pythonAtLeast +, pythonOlder , setuptools }: @@ -10,6 +12,8 @@ buildPythonPackage rec { version = "0.4.0"; pyproject = true; + disabled = pythonOlder "3.7"; + src = fetchPypi { inherit pname version; hash = "sha256-AFq4hTsDcWKnx3u4JGBMbggYeO4DwJrQHvQXRIVgGdM="; @@ -27,6 +31,10 @@ buildPythonPackage rec { "gorilla" ]; + disabledTests = lib.optionals (pythonAtLeast "3.12") [ + "test_find_patches_2" + ]; + meta = with lib; { description = "Convenient approach to monkey patching"; homepage = "https://github.com/christophercrouzet/gorilla";