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