Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / python-modules / bottleneck / default.nix
blobf7e7dc7c390c164d83a7b89e7f342c97d4921065
1 { lib, buildPythonPackage, fetchPypi
2 , nose
3 , numpy
4 , pytest
5 , python
6 }:
8 buildPythonPackage rec {
9   pname = "Bottleneck";
10   version = "1.3.2";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "20179f0b66359792ea283b69aa16366419132f3b6cf3adadc0c48e2e8118e573";
15   };
17   propagatedBuildInputs = [ numpy ];
19   postPatch = ''
20     substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
21   '';
23   checkInputs = [ pytest nose ];
24   checkPhase = ''
25     py.test -p no:warnings $out/${python.sitePackages}
26   '';
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   };