python312Packages.testing-common-database: modernize

This commit is contained in:
Peder Bergebakken Sundt
2024-08-24 19:10:46 +02:00
parent 79ffa9e18d
commit 42c5dd113b
@@ -2,11 +2,13 @@
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage rec {
pname = "testing.common.database";
version = "2.0.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
@@ -15,9 +17,11 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace src/testing/common/database.py \
--replace "collections.Callable" "collections.abc.Callable"
--replace-fail "collections.Callable" "collections.abc.Callable"
'';
build-system = [ setuptools ];
# There are no unit tests
doCheck = false;