at 24.11-pre 864 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 nose, 6 numpy, 7 pythonOlder, 8 scipy, 9}: 10 11buildPythonPackage rec { 12 pname = "ecos"; 13 version = "2.0.11"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "embotech"; 20 repo = "ecos-python"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-jflmXR7fuGRSyI6NoQrHFvkKqF/D4iq47StNSCdLbqQ="; 23 fetchSubmodules = true; 24 }; 25 26 propagatedBuildInputs = [ 27 numpy 28 scipy 29 ]; 30 31 nativeCheckInputs = [ nose ]; 32 33 checkPhase = '' 34 cd ./src 35 nosetests test_interface.py test_interface_bb.py 36 ''; 37 38 pythonImportsCheck = [ "ecos" ]; 39 40 meta = with lib; { 41 description = "Python interface for ECOS"; 42 homepage = "https://github.com/embotech/ecos-python"; 43 license = licenses.gpl3Only; 44 maintainers = with maintainers; [ drewrisinger ]; 45 }; 46}