summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/lap/default.nix
blob: 6e52089a9a12f0837d48037e28ddd700cf83afe3 (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
{
  lib,
  buildPythonPackage,
  cython,
  fetchPypi,
  numpy,
  pytestCheckHook,
  python-utils,
  setuptools,
}:

buildPythonPackage rec {
  pname = "lap";
  version = "0.5.12";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-VwtBTqeubAS9SdDsjNrB3FY0c3dVeE1E43+fZourRP0=";
  };

  build-system = [ setuptools ];

  nativeBuildInputs = [ cython ];

  dependencies = [
    numpy
    python-utils
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "lap" ];
  # See https://github.com/NixOS/nixpkgs/issues/255262
  preCheck = ''
    cd "$out"
  '';

  meta = {
    description = "Linear Assignment Problem solver (LAPJV/LAPMOD)";
    homepage = "https://github.com/gatagat/lap";
    changelog = "https://github.com/gatagat/lap/releases/tag/v${version}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [
      doronbehar
      tebriel
    ];
  };
}