mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 16:23:26 +00:00
Merge pull request #333276 from renesat/feature/highspy
python3Packages.highspy: init at 1.7.2
This commit is contained in:
commit
70be0f1f6a
45
pkgs/development/python-modules/highspy/default.nix
Normal file
45
pkgs/development/python-modules/highspy/default.nix
Normal 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 ];
|
||||||
|
};
|
||||||
|
}
|
@ -16,6 +16,7 @@
|
|||||||
osqp,
|
osqp,
|
||||||
quadprog,
|
quadprog,
|
||||||
scs,
|
scs,
|
||||||
|
highspy,
|
||||||
}:
|
}:
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "qpsolvers";
|
pname = "qpsolvers";
|
||||||
@ -45,7 +46,7 @@ buildPythonPackage rec {
|
|||||||
daqp = [ daqp ];
|
daqp = [ daqp ];
|
||||||
ecos = [ ecos ];
|
ecos = [ ecos ];
|
||||||
gurobi = [ gurobipy ];
|
gurobi = [ gurobipy ];
|
||||||
# highs = [ highspy ];
|
highs = [ highspy ];
|
||||||
# mosek = [ cvxopt mosek ];
|
# mosek = [ cvxopt mosek ];
|
||||||
osqp = [ osqp ];
|
osqp = [ osqp ];
|
||||||
# piqp = [ piqp ];
|
# piqp = [ piqp ];
|
||||||
@ -59,8 +60,9 @@ buildPythonPackage rec {
|
|||||||
clarabel
|
clarabel
|
||||||
cvxopt
|
cvxopt
|
||||||
daqp
|
daqp
|
||||||
ecos # highs
|
|
||||||
osqp # piqp proxqp qpalm
|
osqp # piqp proxqp qpalm
|
||||||
|
ecos
|
||||||
|
highs
|
||||||
quadprog
|
quadprog
|
||||||
scs
|
scs
|
||||||
];
|
];
|
||||||
|
@ -5551,6 +5551,8 @@ self: super: with self; {
|
|||||||
|
|
||||||
highdicom = callPackage ../development/python-modules/highdicom { };
|
highdicom = callPackage ../development/python-modules/highdicom { };
|
||||||
|
|
||||||
|
highspy = callPackage ../development/python-modules/highspy { };
|
||||||
|
|
||||||
hid = callPackage ../development/python-modules/hid {
|
hid = callPackage ../development/python-modules/hid {
|
||||||
inherit (pkgs) hidapi;
|
inherit (pkgs) hidapi;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user