1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 poetry-core,
7 cython,
8 # Check inputs
9 pytestCheckHook,
10 pytest-cov-stub,
11 tomli,
12 pep440,
13}:
14
15buildPythonPackage rec {
16 pname = "python-constraint";
17 version = "2.4.0";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "python-constraint";
22 repo = "python-constraint";
23 tag = version;
24 sha256 = "sha256-Vi+dD/QmHfUrL0l5yTb7B1ILuXj3HYfT0QINdyfoqFo=";
25 };
26
27 build-system = [
28 setuptools
29 poetry-core
30 cython
31 ];
32
33 nativeCheckInputs = [
34 pytestCheckHook
35 pytest-cov-stub
36 tomli
37 pep440
38 ];
39
40 disabledTestPaths = [
41 "tests/test_util_benchmark.py"
42 ];
43
44 meta = with lib; {
45 description = "Constraint Solving Problem resolver for Python";
46 homepage = "https://labix.org/doc/constraint/";
47 downloadPage = "https://github.com/python-constraint/python-constraint/releases";
48 license = licenses.bsd2;
49 maintainers = with maintainers; [ drewrisinger ];
50 };
51}