python310Packages.ecos: 2.0.8 -> 2.0.10

- fix license
main
Fabian Affolter 2 years ago committed by Jonathan Ringer
parent 20eabe3386
commit 3c296bf709
  1. 33
      pkgs/development/python-modules/ecos/default.nix

@ -1,50 +1,49 @@
{ lib { lib
, pythonOlder
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pkgs , nose
, numpy , numpy
, pythonOlder
, scipy , scipy
# check inputs
, nose
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "ecos"; pname = "ecos";
version = "2.0.8"; version = "2.0.10";
format = "setuptools";
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "embotech"; owner = "embotech";
repo = "ecos-python"; repo = "ecos-python";
rev = version; rev = "v${version}";
sha256 = "sha256-2OJqbcOZceeD2fO5cu9fohuUVaA2LwQOQSWR4jRv3mk="; sha256 = "sha256-TPxrTyVZ1KXgPoDbZZqXT5+NEIEndg9qepujqFQwK+Q=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
prePatch = ''
echo '__version__ = "${version}"' >> ./src/ecos/version.py
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
numpy numpy
scipy scipy
]; ];
checkInputs = [ nose ]; checkInputs = [
nose
];
checkPhase = '' checkPhase = ''
# Run tests
cd ./src cd ./src
nosetests test_interface.py test_interface_bb.py nosetests test_interface.py test_interface_bb.py
''; '';
pythonImportsCheck = [ "ecos" ];
pythonImportsCheck = [
"ecos"
];
meta = with lib; { meta = with lib; {
description = "Python package for ECOS: Embedded Cone Solver"; description = "Python package for ECOS: Embedded Cone Solver";
downloadPage = "https://github.com/embotech/ecos-python/releases"; homepage = "https://github.com/embotech/ecos-python";
homepage = pkgs.ecos.meta.homepage; license = licenses.gpl3Only;
license = licenses.asl20;
maintainers = with maintainers; [ drewrisinger ]; maintainers = with maintainers; [ drewrisinger ];
}; };
} }

Loading…
Cancel
Save