1{ lib, buildPythonPackage, fetchPypi 2, nose 3, numpy 4, pytest 5, python 6}: 7 8buildPythonPackage rec { 9 pname = "Bottleneck"; 10 version = "1.3.2"; 11 12 src = fetchPypi { 13 inherit pname version; 14 sha256 = "20179f0b66359792ea283b69aa16366419132f3b6cf3adadc0c48e2e8118e573"; 15 }; 16 17 propagatedBuildInputs = [ numpy ]; 18 19 postPatch = '' 20 substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" "" 21 ''; 22 23 checkInputs = [ pytest nose ]; 24 checkPhase = '' 25 py.test -p no:warnings $out/${python.sitePackages} 26 ''; 27 28 meta = with lib; { 29 description = "Fast NumPy array functions written in C"; 30 homepage = "https://github.com/pydata/bottleneck"; 31 license = licenses.bsd2; 32 maintainers = with maintainers; [ ]; 33 }; 34}