0eaa97ffad
GitOrigin-RevId: c59ea8b8a0e7f927e7291c14ea6cd1bd3a16ff38
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cmake
|
|
, future
|
|
, numpy
|
|
, scipy
|
|
# check inputs
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "osqp";
|
|
version = "0.6.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "130frig5bznfacqp9jwbshmbqd2xw3ixdspsbkrwsvkdaab7kca7";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
dontUseCmakeConfigure = true;
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
pythonImportsCheck = [ "osqp" ];
|
|
checkInputs = [ pytestCheckHook ];
|
|
dontUseSetuptoolsCheck = true; # don't run checks twice
|
|
disabledTests = [
|
|
"mkl_"
|
|
"update_matrices_tests" # broken w/ scipy >= 1.5.0. Remove next release. See https://github.com/oxfordcontrol/osqp-python/issues/44
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "The Operator Splitting QP Solver";
|
|
longDescription = ''
|
|
Numerical optimization package for solving problems in the form
|
|
minimize 0.5 x' P x + q' x
|
|
subject to l <= A x <= u
|
|
|
|
where x in R^n is the optimization variable
|
|
'';
|
|
homepage = "https://osqp.org/";
|
|
downloadPage = "https://github.com/oxfordcontrol/osqp-python/releases";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|