nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 873 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.10"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "embotech"; 19 repo = "ecos-python"; 20 rev = "v${version}"; 21 sha256 = "sha256-TPxrTyVZ1KXgPoDbZZqXT5+NEIEndg9qepujqFQwK+Q="; 22 fetchSubmodules = true; 23 }; 24 25 propagatedBuildInputs = [ 26 numpy 27 scipy 28 ]; 29 30 checkInputs = [ 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 package for ECOS: Embedded Cone Solver"; 45 homepage = "https://github.com/embotech/ecos-python"; 46 license = licenses.gpl3Only; 47 maintainers = with maintainers; [ drewrisinger ]; 48 }; 49}