mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +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,
|
||||
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
|
||||
];
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user