From 2a5ae6bf6e8b9baa020ba6902b92cd68f4f893a2 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Thu, 4 Sep 2025 02:31:27 +0200 Subject: [PATCH] python3Packages.python-constraint: use pyproject, unbreak https://hydra.nixos.org/build/305653184 --- .../python-constraint/default.nix | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-constraint/default.nix b/pkgs/development/python-modules/python-constraint/default.nix index 2ac55f35c9f1..1c402663a675 100644 --- a/pkgs/development/python-modules/python-constraint/default.nix +++ b/pkgs/development/python-modules/python-constraint/default.nix @@ -2,14 +2,20 @@ lib, buildPythonPackage, fetchFromGitHub, + setuptools, + poetry-core, + cython, # Check inputs pytestCheckHook, + pytest-cov-stub, + tomli, + pep440, }: buildPythonPackage rec { pname = "python-constraint"; version = "2.4.0"; - format = "setuptools"; + pyproject = true; src = fetchFromGitHub { owner = "python-constraint"; @@ -18,7 +24,22 @@ buildPythonPackage rec { sha256 = "sha256-Vi+dD/QmHfUrL0l5yTb7B1ILuXj3HYfT0QINdyfoqFo="; }; - nativeCheckInputs = [ pytestCheckHook ]; + build-system = [ + setuptools + poetry-core + cython + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + tomli + pep440 + ]; + + disabledTestPaths = [ + "tests/test_util_benchmark.py" + ]; meta = with lib; { description = "Constraint Solving Problem resolver for Python";