blob: 237ad7a7a00a9ed613d0dd4e6c4b161538053afb (
plain)
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
|
{ lib
, buildPythonPackage
, fetchPypi
, cmake
, future
, numpy
# check inputs
, scipy
, pytestCheckHook
, mkl
}:
buildPythonPackage rec {
pname = "osqp";
version = "0.6.1";
src = fetchPypi {
inherit pname version;
sha256 = "130frig5bznfacqp9jwbshmbqd2xw3ixdspsbkrwsvkdaab7kca7";
};
nativeBuildInputs = [ cmake ];
dontUseCmakeConfigure = true;
propagatedBuildInputs = [
numpy
future
];
checkInputs = [ scipy pytestCheckHook mkl ];
pythonImportsCheck = [ "osqp" ];
dontUseSetuptoolsCheck = true; # running setup.py fails if false
preCheck = ''
export LD_LIBRARY_PATH=${lib.strings.makeLibraryPath [ mkl ]}:$LD_LIBRARY_PATH;
'';
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";
license = licenses.asl20;
maintainers = with lib.maintainers; [ drewrisinger ];
};
}
|