Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 oldest-supported-numpy, 6 pytestCheckHook, 7 pythonOlder, 8 scipy, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "ecos"; 14 version = "2.0.13"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "embotech"; 21 repo = "ecos-python"; 22 rev = "refs/tags/v${version}"; 23 hash = "sha256-3NcZBZ7fnwiMelGssa74b5PgmXmNZhP4etNRpyrCkpo="; 24 fetchSubmodules = true; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ 30 oldest-supported-numpy 31 scipy 32 ]; 33 34 nativeCheckInputs = [ pytestCheckHook ]; 35 36 pythonImportsCheck = [ "ecos" ]; 37 38 meta = with lib; { 39 description = "Python interface for ECOS"; 40 homepage = "https://github.com/embotech/ecos-python"; 41 changelog = "https://github.com/embotech/ecos-python/releases/tag/v${version}"; 42 license = licenses.gpl3Only; 43 maintainers = with maintainers; [ drewrisinger ]; 44 }; 45}