From 42c5dd113b39a5aaf6a54ca5ee01ea421e87ea49 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Sat, 24 Aug 2024 18:50:29 +0200 Subject: [PATCH] python312Packages.testing-common-database: modernize --- .../python-modules/testing-common-database/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/testing-common-database/default.nix b/pkgs/development/python-modules/testing-common-database/default.nix index 021b3e7ef7e2..0555bd8ee025 100644 --- a/pkgs/development/python-modules/testing-common-database/default.nix +++ b/pkgs/development/python-modules/testing-common-database/default.nix @@ -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;