python310Packages.testing-common-database: patch collections.Callable for python 3.10 support

This commit is contained in:
P. R. d. O 2022-04-09 18:15:59 -06:00
parent 665bb90fc3
commit 03771f6d87
No known key found for this signature in database
GPG key ID: 7B0FF33FF90110C7

View file

@ -9,6 +9,11 @@ buildPythonPackage rec {
sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn";
};
postPatch = ''
substituteInPlace src/testing/common/database.py \
--replace "collections.Callable" "collections.abc.Callable"
'';
# There are no unit tests
doCheck = false;