python.pkgs.bottleneck: move expression
This commit is contained in:
parent
a25e324e06
commit
66ce84b619
26
pkgs/development/python-modules/bottleneck/default.nix
Normal file
26
pkgs/development/python-modules/bottleneck/default.nix
Normal 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" ""
|
||||
'';
|
||||
}
|
@ -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}";
|
||||
|
Loading…
Reference in New Issue
Block a user