mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cmake
|
|
, future
|
|
, numpy
|
|
, qdldl
|
|
, scipy
|
|
# check inputs
|
|
, pytestCheckHook
|
|
, cvxopt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "osqp";
|
|
version = "0.6.2.post0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "5f0695f26a3bef0fae91254bc283fab790dcca0064bfe0f425167f9c9e8b4cbc";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
dontUseCmakeConfigure = true;
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
numpy
|
|
qdldl
|
|
scipy
|
|
];
|
|
|
|
pythonImportsCheck = [ "osqp" ];
|
|
checkInputs = [ pytestCheckHook cvxopt ];
|
|
disabledTests = [
|
|
"mkl_"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|