2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-05-18 14:49:53 +00:00
|
|
|
, nose
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
2022-05-18 14:49:53 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, scipy
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ecos";
|
2022-05-18 14:49:53 +00:00
|
|
|
version = "2.0.10";
|
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "embotech";
|
|
|
|
repo = "ecos-python";
|
2022-05-18 14:49:53 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-TPxrTyVZ1KXgPoDbZZqXT5+NEIEndg9qepujqFQwK+Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
scipy
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
nose
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
cd ./src
|
|
|
|
nosetests test_interface.py test_interface_bb.py
|
|
|
|
'';
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"ecos"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python package for ECOS: Embedded Cone Solver";
|
2022-05-18 14:49:53 +00:00
|
|
|
homepage = "https://github.com/embotech/ecos-python";
|
|
|
|
license = licenses.gpl3Only;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
|
|
};
|
|
|
|
}
|