1{ lib
2, buildPythonPackage
3, fetchFromGitLab
4, numpy
5, cvxopt
6, python
7, networkx
8}:
9
10buildPythonPackage rec {
11 pname = "picos";
12 version = "2.0";
13
14 src = fetchFromGitLab {
15 owner = "picos-api";
16 repo = "picos";
17 rev = "v${version}";
18 sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607";
19 };
20
21 # Needed only for the tests
22 nativeCheckInputs = [
23 networkx
24 ];
25
26 propagatedBuildInputs = [
27 numpy
28 cvxopt
29 ];
30
31 checkPhase = ''
32 ${python.interpreter} test.py
33 '';
34
35 meta = with lib; {
36 description = "A Python interface to conic optimization solvers";
37 homepage = "https://gitlab.com/picos-api/picos";
38 license = licenses.gpl3;
39 maintainers = with maintainers; [ tobiasBora ];
40 };
41}