nixpkgs/pkgs/development/python-modules/picos/default.nix

42 lines
738 B
Nix
Raw Normal View History

2019-07-09 15:51:43 +01:00
{ lib
, buildPythonPackage
, fetchFromGitLab
, numpy
, cvxopt
, python
2020-03-07 13:50:42 +00:00
, networkx
2019-07-09 15:51:43 +01:00
}:
buildPythonPackage rec {
pname = "picos";
2020-03-07 13:50:42 +00:00
version = "2.0";
2019-07-09 15:51:43 +01:00
src = fetchFromGitLab {
owner = "picos-api";
repo = "picos";
rev = "v${version}";
2020-03-07 13:50:42 +00:00
sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607";
2019-07-09 15:51:43 +01:00
};
2020-03-07 13:50:42 +00:00
# Needed only for the tests
checkInputs = [
networkx
];
2019-07-09 15:51:43 +01:00
propagatedBuildInputs = [
numpy
cvxopt
];
checkPhase = ''
${python.interpreter} test.py
'';
meta = with lib; {
description = "A Python interface to conic optimization solvers";
2020-03-07 13:50:42 +00:00
homepage = "https://gitlab.com/picos-api/picos";
2019-07-09 15:51:43 +01:00
license = licenses.gpl3;
maintainers = with maintainers; [ tobiasBora ];
};
}