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