Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitLab, 5 numpy, 6 cvxopt, 7 python, 8 networkx, 9}: 10 11buildPythonPackage rec { 12 pname = "picos"; 13 version = "2.0"; 14 format = "setuptools"; 15 16 src = fetchFromGitLab { 17 owner = "picos-api"; 18 repo = "picos"; 19 rev = "v${version}"; 20 sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607"; 21 }; 22 23 # Needed only for the tests 24 nativeCheckInputs = [ networkx ]; 25 26 propagatedBuildInputs = [ 27 numpy 28 cvxopt 29 ]; 30 31 checkPhase = '' 32 ${python.interpreter} test.py 33 ''; 34 35 meta = with lib; { 36 description = "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}