python.pkgs.bottleneck: move expression

This commit is contained in:
Frederik Rietdijk 2017-08-12 09:10:32 +02:00
parent a25e324e06
commit 66ce84b619
2 changed files with 27 additions and 17 deletions

View File

@ -0,0 +1,26 @@
{ lib
, buildPythonPackage
, fetchPypi
, nose
, numpy
, python
}:
buildPythonPackage rec {
pname = "Bottleneck";
name = "Bottleneck-${version}";
version = "1.2.0";
src = fetchPypi {
inherit pname version;
sha256 = "3bec84564a4adbe97c24e875749b949a19cfba4e4588be495cc441db7c6b05e8";
};
checkInputs = [ nose ];
propagatedBuildInputs = [ numpy ];
checkPhase = ''
nosetests -v $out/${python.sitePackages}
'';
postPatch = ''
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
'';
}

View File

@ -16015,23 +16015,7 @@ in {
};
bottleneck = buildPythonPackage rec {
name = "Bottleneck-${version}";
version = "1.2.0";
src = pkgs.fetchurl {
url = "mirror://pypi/B/Bottleneck/Bottleneck-${version}.tar.gz";
sha256 = "3bec84564a4adbe97c24e875749b949a19cfba4e4588be495cc441db7c6b05e8";
};
buildInputs = with self; [ nose ];
propagatedBuildInputs = [self.numpy];
checkPhase = ''
nosetests -v $out/${python.sitePackages}
'';
postPatch = ''
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
'';
};
bottleneck = callPackage ../development/python-modules/bottleneck { };
paho-mqtt = buildPythonPackage rec {
name = "paho-mqtt-${version}";