2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitLab,
|
|
|
|
numpy,
|
|
|
|
cvxopt,
|
|
|
|
python,
|
|
|
|
networkx,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "picos";
|
|
|
|
version = "2.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
owner = "picos-api";
|
|
|
|
repo = "picos";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1k65iq791k5r08gh2kc6iz0xw1wyzqik19j6iam8ip732r7jm607";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Needed only for the tests
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ networkx ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
cvxopt
|
|
|
|
];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} test.py
|
|
|
|
'';
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Python interface to conic optimization solvers";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://gitlab.com/picos-api/picos";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ tobiasBora ];
|
|
|
|
};
|
|
|
|
}
|