python3Packages.highspy: init at 1.7.2

This commit is contained in:
renesat
2024-08-10 13:45:53 +02:00
parent 5544b2785f
commit 5290d7a267
3 changed files with 51 additions and 2 deletions
@@ -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 ];
};
}
@@ -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
];
+2
View File
@@ -5545,6 +5545,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;
};