diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/boto/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/boto/default.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/boto/default.nix b/nixpkgs/pkgs/development/python-modules/boto/default.nix index 5199ca645091..586f023f8009 100644 --- a/nixpkgs/pkgs/development/python-modules/boto/default.nix +++ b/nixpkgs/pkgs/development/python-modules/boto/default.nix @@ -2,7 +2,6 @@ , buildPythonPackage , fetchPypi , pythonAtLeast -, isPy38 , python , nose , mock @@ -13,18 +12,23 @@ buildPythonPackage rec { pname = "boto"; version = "2.49.0"; - disabled = pythonAtLeast "3.9"; # no longer compatible with hmac std lib package + disabled = pythonAtLeast "3.10"; # cannot import name 'Mapping' from 'collections' src = fetchPypi { inherit pname version; sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"; }; + patches = [ + # fixes hmac tests + # https://sources.debian.org/src/python-boto/2.49.0-4/debian/patches/bug-953970_python3.8-compat.patch/ + ./bug-953970_python3.8-compat.patch + ]; + checkPhase = '' ${python.interpreter} tests/test.py default ''; - doCheck = !isPy38; # hmac functionality has changed checkInputs = [ nose mock ]; propagatedBuildInputs = [ requests httpretty ]; |