diff options
author | Alyssa Ross <hi@alyssa.is> | 2022-12-06 19:57:55 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-02-08 13:48:30 +0000 |
commit | bf3aadfdd39aa197e18bade671fab6726349ffa4 (patch) | |
tree | 698567af766ed441d757b57a7b21e68d4a342a2b /nixpkgs/pkgs/development/python-modules/bottleneck | |
parent | f4afc5a01d9539ce09e47494e679c51f80723d07 (diff) | |
parent | 99665eb45f58d959d2cb9e49ddb960c79d596f33 (diff) | |
download | nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.gz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.bz2 nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.lz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.xz nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.tar.zst nixlib-bf3aadfdd39aa197e18bade671fab6726349ffa4.zip |
Merge commit '99665eb45f58d959d2cb9e49ddb960c79d596f33'
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/bottleneck')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/bottleneck/default.nix | 47 |
1 files changed, 31 insertions, 16 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/bottleneck/default.nix b/nixpkgs/pkgs/development/python-modules/bottleneck/default.nix index f7e7dc7c390c..5774397e24f2 100644 --- a/nixpkgs/pkgs/development/python-modules/bottleneck/default.nix +++ b/nixpkgs/pkgs/development/python-modules/bottleneck/default.nix @@ -1,32 +1,47 @@ -{ lib, buildPythonPackage, fetchPypi -, nose +{ lib +, buildPythonPackage +, fetchPypi , numpy -, pytest +, pytestCheckHook , python +, pythonOlder }: buildPythonPackage rec { - pname = "Bottleneck"; - version = "1.3.2"; + pname = "bottleneck"; + version = "1.3.5"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - sha256 = "20179f0b66359792ea283b69aa16366419132f3b6cf3adadc0c48e2e8118e573"; + pname = "Bottleneck"; + inherit version; + hash = "sha256-LA0nr+RTUfb0IYkzYmIYBPp96hT+KaeOqlLUMj9kbec="; }; - propagatedBuildInputs = [ numpy ]; + propagatedBuildInputs = [ + numpy + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pytestFlagsArray = [ + "$out/${python.sitePackages}" + ]; - postPatch = '' - substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" "" - ''; + disabledTests = [ + "test_make_c_files" + ]; - checkInputs = [ pytest nose ]; - checkPhase = '' - py.test -p no:warnings $out/${python.sitePackages} - ''; + pythonImportsCheck = [ + "bottleneck" + ]; meta = with lib; { - description = "Fast NumPy array functions written in C"; + description = "Fast NumPy array functions"; homepage = "https://github.com/pydata/bottleneck"; license = licenses.bsd2; maintainers = with maintainers; [ ]; |