nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 42 lines 853 B view raw
1{ stdenv 2, lib 3, buildPythonPackage 4, fetchPypi 5, scipy 6, numba 7, pytestCheckHook 8}: 9 10buildPythonPackage rec { 11 pname = "numba-scipy"; 12 version = "0.3.0"; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "sha256-qJeoWiG1LdtFB9cME1d8xVaC0BXGDJEYjCOEdHvSkmQ="; 17 }; 18 19 propagatedBuildInputs = [ 20 scipy 21 numba 22 ]; 23 24 postPatch = '' 25 substituteInPlace setup.py --replace "scipy>=0.16,<=1.6.2" "scipy>=0.16,<=1.7.3" 26 ''; 27 28 checkInputs = [ 29 pytestCheckHook 30 ]; 31 32 pythonImportsCheck = [ "numba" ]; 33 34 meta = with lib; { 35 broken = stdenv.isDarwin; 36 description = "Extends Numba to make it aware of SciPy"; 37 homepage = "https://github.com/numba/numba-scipy"; 38 changelog = "https://github.com/numba/numba-scipy/blob/master/CHANGE_LOG"; 39 license = licenses.bsd2; 40 maintainers = with maintainers; [ Etjean ]; 41 }; 42}