Merge pull request #333276 from renesat/feature/highspy

python3Packages.highspy: init at 1.7.2
This commit is contained in:
OTABI Tomoya 2024-08-11 10:51:52 +09:00 committed by GitHub
commit 70be0f1f6a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 51 additions and 2 deletions

View File

@ -0,0 +1,45 @@
{
lib,
buildPythonPackage,
pytestCheckHook,
pythonOlder,
scikit-build-core,
pybind11,
numpy,
cmake,
ninja,
pathspec,
highs,
}:
buildPythonPackage {
pname = "highspy";
version = highs.version;
pyproject = true;
disabled = pythonOlder "3.8";
inherit (highs) src;
build-system = [
cmake
ninja
pathspec
scikit-build-core
pybind11
];
dontUseCmakeConfigure = true;
dependencies = [ numpy ];
pythonImportsCheck = [ "highspy" ];
nativeCheckInputs = [ pytestCheckHook ];
meta = with lib; {
description = "Linear optimization software";
homepage = "https://github.com/ERGO-Code/HiGHS";
license = licenses.mit;
maintainers = with maintainers; [ renesat ];
};
}

View File

@ -16,6 +16,7 @@
osqp,
quadprog,
scs,
highspy,
}:
buildPythonPackage rec {
pname = "qpsolvers";
@ -45,7 +46,7 @@ buildPythonPackage rec {
daqp = [ daqp ];
ecos = [ ecos ];
gurobi = [ gurobipy ];
# highs = [ highspy ];
highs = [ highspy ];
# mosek = [ cvxopt mosek ];
osqp = [ osqp ];
# piqp = [ piqp ];
@ -59,8 +60,9 @@ buildPythonPackage rec {
clarabel
cvxopt
daqp
ecos # highs
osqp # piqp proxqp qpalm
ecos
highs
quadprog
scs
];

View File

@ -5551,6 +5551,8 @@ self: super: with self; {
highdicom = callPackage ../development/python-modules/highdicom { };
highspy = callPackage ../development/python-modules/highspy { };
hid = callPackage ../development/python-modules/hid {
inherit (pkgs) hidapi;
};