blob: 5bc5e35c6332e9d46c896b055c6ba6f632bddf6f (
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
|
{ lib
, buildPythonPackage
, fetchFromGitLab
, numpy
, cvxopt
, python
, networkx
}:
buildPythonPackage rec {
pname = "picos";
version = "2.0";
format = "setuptools";
src = fetchFromGitLab {
owner = "picos-api";
repo = "picos";
rev = "v${version}";
sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607";
};
# Needed only for the tests
nativeCheckInputs = [
networkx
];
propagatedBuildInputs = [
numpy
cvxopt
];
checkPhase = ''
${python.interpreter} test.py
'';
meta = with lib; {
description = "A Python interface to conic optimization solvers";
homepage = "https://gitlab.com/picos-api/picos";
license = licenses.gpl3;
maintainers = with maintainers; [ tobiasBora ];
};
}
|