mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-15 08:40:28 +00:00
47 lines
864 B
Nix
47 lines
864 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
nose,
|
|
numpy,
|
|
pythonOlder,
|
|
scipy,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ecos";
|
|
version = "2.0.11";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "embotech";
|
|
repo = "ecos-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jflmXR7fuGRSyI6NoQrHFvkKqF/D4iq47StNSCdLbqQ=";
|
|
fetchSubmodules = true;
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
scipy
|
|
];
|
|
|
|
nativeCheckInputs = [ nose ];
|
|
|
|
checkPhase = ''
|
|
cd ./src
|
|
nosetests test_interface.py test_interface_bb.py
|
|
'';
|
|
|
|
pythonImportsCheck = [ "ecos" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface for ECOS";
|
|
homepage = "https://github.com/embotech/ecos-python";
|
|
license = licenses.gpl3Only;
|
|
maintainers = with maintainers; [ drewrisinger ];
|
|
};
|
|
}
|