python312Packages.testing-common-database: modernize
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user