nixpkgs/pkgs/development/python-modules/python-constraint/default.nix
2025-10-07 20:49:13 +03:00

52 lines
958 B
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";
pyproject = true;
src = fetchFromGitHub {
owner = "python-constraint";
repo = "python-constraint";
tag = version;
sha256 = "sha256-Vi+dD/QmHfUrL0l5yTb7B1ILuXj3HYfT0QINdyfoqFo=";
};
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";
homepage = "https://labix.org/doc/constraint/";
downloadPage = "https://github.com/python-constraint/python-constraint/releases";
license = licenses.bsd2;
maintainers = [ ];
};
}