about summary refs log tree commit diff
path: root/pkgs/development/python-modules/picos/default.nix
blob: 57fbe099071dc1076fdd0a8b314e38032b94a406 (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
{ lib
, buildPythonPackage
, fetchFromGitLab
, numpy
, cvxopt
, python
}:

buildPythonPackage rec {
  pname = "picos";
  version = "1.2.0";

  src = fetchFromGitLab {
    owner = "picos-api";
    repo = "picos";
    rev = "v${version}";
    sha256 = "018xhc7cb2crkk27lhl63c7h77w5wa37fg41i7nqr4xclr43cs9z";
  };

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