uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
53
pkgs/development/python-modules/numexpr/default.nix
Normal file
53
pkgs/development/python-modules/numexpr/default.nix
Normal file
|
|
@ -0,0 +1,53 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, numpy
|
||||
, packaging
|
||||
, python
|
||||
, pythonOlder
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "numexpr";
|
||||
version = "2.8.1";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-zXeapE3ZhsTvEBY1GSOWArAnvgalJ5RmViB6zx9YETs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
numpy
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
numpy
|
||||
packaging
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
# Remove existing site.cfg, use the one we built for numpy
|
||||
ln -s ${numpy.cfg} site.cfg
|
||||
'';
|
||||
|
||||
checkPhase = ''
|
||||
runtest="$(pwd)/numexpr/tests/test_numexpr.py"
|
||||
pushd "$out"
|
||||
${python.interpreter} "$runtest"
|
||||
popd
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"numexpr"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Fast numerical array expression evaluator for NumPy";
|
||||
homepage = "https://github.com/pydata/numexpr";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue