1{ lib
2, buildPythonPackage
3, fetchPypi
4, numpy
5, pytestCheckHook
6, python
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "bottleneck";
12 version = "1.3.7";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 pname = "Bottleneck";
19 inherit version;
20 hash = "sha256-4UZ+NzrUado0DtD/KDIU1lMcwIv9yiCDNho6pkcGgfg=";
21 };
22
23 propagatedBuildInputs = [
24 numpy
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pytestFlagsArray = [
32 "$out/${python.sitePackages}"
33 ];
34
35 disabledTests = [
36 "test_make_c_files"
37 ];
38
39 pythonImportsCheck = [
40 "bottleneck"
41 ];
42
43 meta = with lib; {
44 description = "Fast NumPy array functions";
45 homepage = "https://github.com/pydata/bottleneck";
46 license = licenses.bsd2;
47 maintainers = with maintainers; [ ];
48 };
49}