about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/bottleneck/default.nix
blob: c4db013ea34d3c95a6c1e8109163a14a7639a096 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ buildPythonPackage
, fetchPypi
, nose
, pytest
, numpy
, python
}:

buildPythonPackage rec {
  pname = "Bottleneck";
  version = "1.2.1";
  name = pname + "-" + version;

  src = fetchPypi {
    inherit pname version;
    sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
  };

  checkInputs = [ pytest nose ];
  propagatedBuildInputs = [ numpy ];
  checkPhase = ''
    py.test -p no:warnings $out/${python.sitePackages}
  '';
  postPatch = ''
    substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
  '';
}