summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/highspy/default.nix
blob: f643939570f1d5732cc0540fabe94e502add7556 (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
{
  lib,
  buildPythonPackage,
  pytestCheckHook,
  scikit-build-core,
  pybind11,
  numpy,
  cmake,
  ninja,
  pathspec,
  highs,
}:
buildPythonPackage {
  pname = "highspy";
  version = highs.version;
  pyproject = true;

  inherit (highs) src;

  build-system = [
    cmake
    ninja
    pathspec
    scikit-build-core
    pybind11
  ];

  dontUseCmakeConfigure = true;

  dependencies = [ numpy ];

  pythonImportsCheck = [ "highspy" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Linear optimization software";
    homepage = "https://github.com/ERGO-Code/HiGHS";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ renesat ];
  };
}