depot/third_party/nixpkgs/pkgs/development/python-modules/osqp/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

53 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 ];
};
}