nixpkgs/pkgs/development/python-modules/osqp/default.nix

54 lines
1.1 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchPypi
, cmake
, future
, numpy
2021-01-12 00:35:36 +00:00
, 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
2021-01-12 00:35:36 +00:00
qdldl
scipy
];
pythonImportsCheck = [ "osqp" ];
checkInputs = [ pytestCheckHook cvxopt ];
disabledTests = [
"mkl_"
2021-01-12 00:35:36 +00:00
];
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 ];
};
}