Skip to content

Commit

Permalink
python3Packages.bottleneck: 1.2.1 -> 1.3.1
Browse files Browse the repository at this point in the history
Also gave the expression some love
  • Loading branch information
Jonathan Ringer committed Dec 19, 2019
1 parent ea96d2a commit 146e2a0
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions pkgs/development/python-modules/bottleneck/default.nix
Original file line number Diff line number Diff line change
@@ -1,26 +1,34 @@
{ buildPythonPackage
, fetchPypi
{ lib, buildPythonPackage, fetchPypi
, nose
, pytest
, numpy
, pytest
, python
}:

buildPythonPackage rec {
pname = "Bottleneck";
version = "1.2.1";
version = "1.3.1";

src = fetchPypi {
inherit pname version;
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
sha256 = "0a2a94zahl3kqld2n9dm58fvazz9s52sa16nd8yn5jv20hvqc5a5";
};

checkInputs = [ pytest nose ];
propagatedBuildInputs = [ numpy ];
checkPhase = ''
py.test -p no:warnings $out/${python.sitePackages}
'';

postPatch = ''
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
'';

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; [ ];
};
}

0 comments on commit 146e2a0

Please sign in to comment.