at master 742 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 pytestCheckHook, 5 pythonOlder, 6 scikit-build-core, 7 pybind11, 8 numpy, 9 cmake, 10 ninja, 11 pathspec, 12 highs, 13}: 14buildPythonPackage { 15 pname = "highspy"; 16 version = highs.version; 17 pyproject = true; 18 19 disabled = pythonOlder "3.8"; 20 21 inherit (highs) src; 22 23 build-system = [ 24 cmake 25 ninja 26 pathspec 27 scikit-build-core 28 pybind11 29 ]; 30 31 dontUseCmakeConfigure = true; 32 33 dependencies = [ numpy ]; 34 35 pythonImportsCheck = [ "highspy" ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 meta = with lib; { 40 description = "Linear optimization software"; 41 homepage = "https://github.com/ERGO-Code/HiGHS"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ renesat ]; 44 }; 45}