2019-12-16 04:22:57 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2017-08-12 08:10:32 +01:00
|
|
|
, nose
|
|
|
|
, numpy
|
2019-12-16 04:22:57 +00:00
|
|
|
, pytest
|
2017-08-12 08:10:32 +01:00
|
|
|
, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Bottleneck";
|
2020-05-09 11:01:44 +01:00
|
|
|
version = "1.3.2";
|
2017-11-09 11:26:09 +00:00
|
|
|
|
2017-08-12 08:10:32 +01:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-09 11:01:44 +01:00
|
|
|
sha256 = "20179f0b66359792ea283b69aa16366419132f3b6cf3adadc0c48e2e8118e573";
|
2017-08-12 08:10:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ numpy ];
|
2019-12-16 04:22:57 +00:00
|
|
|
|
2017-08-12 08:10:32 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
|
|
|
'';
|
2019-12-16 04:22:57 +00:00
|
|
|
|
|
|
|
checkInputs = [ pytest nose ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test -p no:warnings $out/${python.sitePackages}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Fast NumPy array functions written in C";
|
|
|
|
homepage = "https://github.com/pydata/bottleneck";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ ];
|
|
|
|
};
|
2017-11-09 11:26:09 +00:00
|
|
|
}
|