1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 numpy,
6 pytestCheckHook,
7 python,
8 pythonOlder,
9}:
10
11buildPythonPackage rec {
12 pname = "bottleneck";
13 version = "1.6.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.9";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-Ao1G7ksCWtmrTXmSQROBb4JfYrF7h8nh0NjOFEpKDjE=";
21 };
22
23 propagatedBuildInputs = [ numpy ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 preCheck = "pushd $out";
28 postCheck = "popd";
29
30 disabledTests = [ "test_make_c_files" ];
31
32 pythonImportsCheck = [ "bottleneck" ];
33
34 meta = with lib; {
35 description = "Fast NumPy array functions";
36 homepage = "https://github.com/pydata/bottleneck";
37 license = licenses.bsd2;
38 maintainers = [ ];
39 };
40}