python3Packages.python-constraint: use pyproject, unbreak

https://hydra.nixos.org/build/305653184
This commit is contained in:
Peder Bergebakken Sundt
2025-09-04 02:31:55 +02:00
parent 147f230375
commit 2a5ae6bf6e
@@ -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";