summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-constraint/default.nix
blob: be842e6fd999a62d857aa22b20db7372c28706c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
  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 = [ ];
  };
}