2018-07-21 01:44:44 +01:00
|
|
|
{ buildPythonPackage
|
2017-08-12 08:10:32 +01:00
|
|
|
, fetchPypi
|
|
|
|
, nose
|
|
|
|
, numpy
|
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Bottleneck";
|
2017-08-24 18:34:20 +01:00
|
|
|
version = "1.2.1";
|
2017-11-09 11:26:09 +00:00
|
|
|
name = pname + "-" + version;
|
|
|
|
|
2017-08-12 08:10:32 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-08-24 18:34:20 +01:00
|
|
|
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
2017-08-12 08:10:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ nose ];
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
|
|
|
checkPhase = ''
|
|
|
|
nosetests -v $out/${python.sitePackages}
|
|
|
|
'';
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
|
|
|
'';
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|