blob: 13797c4d17f836bac7c2573432fc0ee347e733a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{ lib
, buildPythonPackage
, cmake
, cvxopt
, fetchPypi
, future
, numpy
, pytestCheckHook
, pythonOlder
, qdldl
, scipy
, setuptools-scm
}:
buildPythonPackage rec {
pname = "osqp";
version = "0.6.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-A+Rg5oPsLOD4OTU936PEyP+lCauM9qKyr7tYb6RT4YA=";
};
dontUseCmakeConfigure = true;
nativeBuildInputs = [
cmake
setuptools-scm
];
propagatedBuildInputs = [
future
numpy
qdldl
scipy
];
nativeCheckInputs = [
cvxopt
pytestCheckHook
];
pythonImportsCheck = [
"osqp"
];
disabledTests = [
# Need an unfree license package - mkl
"test_issue14"
];
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 ];
};
}
|