nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib
2, buildPythonPackage
3, fetchFromGitLab
4, numpy
5, cvxopt
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "picos";
11 version = "1.2.0";
12
13 src = fetchFromGitLab {
14 owner = "picos-api";
15 repo = "picos";
16 rev = "v${version}";
17 sha256 = "018xhc7cb2crkk27lhl63c7h77w5wa37fg41i7nqr4xclr43cs9z";
18 };
19
20 propagatedBuildInputs = [
21 numpy
22 cvxopt
23 ];
24
25 checkPhase = ''
26 ${python.interpreter} test.py
27 '';
28
29 meta = with lib; {
30 description = "A Python interface to conic optimization solvers";
31 homepage = https://gitlab.com/picos-api/picos;
32 license = licenses.gpl3;
33 maintainers = with maintainers; [ tobiasBora ];
34 };
35}
36