mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-19 02:24:30 +00:00

treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
27 lines
532 B
Nix
27 lines
532 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, nose
|
|
, pytest
|
|
, numpy
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "Bottleneck";
|
|
version = "1.2.1";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "6efcde5f830aed64feafca0359b51db0e184c72af8ba6675b4a99f263922eb36";
|
|
};
|
|
|
|
checkInputs = [ pytest nose ];
|
|
propagatedBuildInputs = [ numpy ];
|
|
checkPhase = ''
|
|
py.test -p no:warnings $out/${python.sitePackages}
|
|
'';
|
|
postPatch = ''
|
|
substituteInPlace setup.py --replace "__builtins__.__NUMPY_SETUP__ = False" ""
|
|
'';
|
|
}
|