depot/third_party/nixpkgs/pkgs/development/python-modules/ecos/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

49 lines
867 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 ];
};
}