Files
nixpkgs/pkgs/development/python-modules/python-constraint/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
952 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 = {
description = "Constraint Solving Problem resolver for Python";
homepage = "https://labix.org/doc/constraint/";
downloadPage = "https://github.com/python-constraint/python-constraint/releases";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}