mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
26 lines
544 B
Nix
26 lines
544 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, numpy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Bottleneck";
|
|
name = "Bottleneck-${version}";
|
|
version = "1.2.1";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
|
};
|
|
|
|
checkInputs = [ nose ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
checkPhase = ''
|
|
nosetests -v $out/${python.sitePackages}
|
|
'';
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
|
'';
|
|
} |