diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2022-05-09 21:29:56 +0200 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-05-09 16:42:49 -0700 |
commit | 3c296bf709e20a73c00b41fd41a680752a3d7698 (patch) | |
tree | 8a1160a8d074fd5d43ea427e5b54c0ebae0ebfb6 /pkgs/development/python-modules/ecos | |
parent | 20eabe33864104ad9928450e5927ab7835f8f9e8 (diff) |
python310Packages.ecos: 2.0.8 -> 2.0.10
- fix license
Diffstat (limited to 'pkgs/development/python-modules/ecos')
-rw-r--r-- | pkgs/development/python-modules/ecos/default.nix | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/pkgs/development/python-modules/ecos/default.nix b/pkgs/development/python-modules/ecos/default.nix index 35470cb8b60b2..da1f9fa510696 100644 --- a/pkgs/development/python-modules/ecos/default.nix +++ b/pkgs/development/python-modules/ecos/default.nix @@ -1,50 +1,49 @@ { lib -, pythonOlder , buildPythonPackage , fetchFromGitHub -, pkgs +, nose , numpy +, pythonOlder , scipy - # check inputs -, nose }: buildPythonPackage rec { pname = "ecos"; - version = "2.0.8"; + version = "2.0.10"; + format = "setuptools"; disabled = pythonOlder "3.6"; src = fetchFromGitHub { owner = "embotech"; repo = "ecos-python"; - rev = version; - sha256 = "sha256-2OJqbcOZceeD2fO5cu9fohuUVaA2LwQOQSWR4jRv3mk="; + rev = "v${version}"; + sha256 = "sha256-TPxrTyVZ1KXgPoDbZZqXT5+NEIEndg9qepujqFQwK+Q="; fetchSubmodules = true; }; - prePatch = '' - echo '__version__ = "${version}"' >> ./src/ecos/version.py - ''; - propagatedBuildInputs = [ numpy scipy ]; - checkInputs = [ nose ]; + checkInputs = [ + nose + ]; + checkPhase = '' - # Run tests cd ./src nosetests test_interface.py test_interface_bb.py ''; - pythonImportsCheck = [ "ecos" ]; + + pythonImportsCheck = [ + "ecos" + ]; meta = with lib; { description = "Python package for ECOS: Embedded Cone Solver"; - downloadPage = "https://github.com/embotech/ecos-python/releases"; - homepage = pkgs.ecos.meta.homepage; - license = licenses.asl20; + homepage = "https://github.com/embotech/ecos-python"; + license = licenses.gpl3Only; maintainers = with maintainers; [ drewrisinger ]; }; } |