diff --git a/pkgs/development/python-modules/boto/default.nix b/pkgs/development/python-modules/boto/default.nix index 586f023f8009..3dbe709cb796 100644 --- a/pkgs/development/python-modules/boto/default.nix +++ b/pkgs/development/python-modules/boto/default.nix @@ -12,7 +12,6 @@ buildPythonPackage rec { pname = "boto"; version = "2.49.0"; - disabled = pythonAtLeast "3.10"; # cannot import name 'Mapping' from 'collections' src = fetchPypi { inherit pname version; @@ -25,6 +24,11 @@ buildPythonPackage rec { ./bug-953970_python3.8-compat.patch ]; + postPatch = '' + substituteInPlace boto/dynamodb/types.py --replace 'from collections import Mapping' 'from collections.abc import Mapping' + substituteInPlace boto/mws/connection.py --replace 'import collections' 'import collections.abc as collections' + ''; + checkPhase = '' ${python.interpreter} tests/test.py default '';