python3Packages.python-constraint: use pyproject, unbreak

https://hydra.nixos.org/build/305653184

Changed files
+23 -2
pkgs
development
python-modules
python-constraint
+23 -2
pkgs/development/python-modules/python-constraint/default.nix
···
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";
···
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";