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
63
pkgs/development/python-modules/worldengine/default.nix
Normal file
63
pkgs/development/python-modules/worldengine/default.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, isPy27
|
||||
, fetchFromGitHub
|
||||
, noise
|
||||
, numpy
|
||||
, pyplatec
|
||||
, protobuf
|
||||
, purepng
|
||||
, h5py
|
||||
, gdal
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "worldengine";
|
||||
version = "0.19.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Mindwerks";
|
||||
repo = "worldengine";
|
||||
rev = "v${version}";
|
||||
sha256 = "1xrckb0dn2841gvp32n18gib14bpi77hmjw3r9jiyhg402iip7ry";
|
||||
};
|
||||
|
||||
src-data = fetchFromGitHub {
|
||||
owner = "Mindwerks";
|
||||
repo = "worldengine-data";
|
||||
rev = "029051e";
|
||||
sha256 = "06xbf8gj3ljgr11v1n8jbs2q8pdf9wz53xdgkhpm8hdnjahgdxdm";
|
||||
};
|
||||
|
||||
postUnpack = ''
|
||||
ln -s ${src-data} worldengine-data
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ noise numpy pyplatec protobuf purepng h5py gdal ];
|
||||
|
||||
prePatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace pypng>=0.0.18 purepng \
|
||||
--replace 'numpy>=1.9.2, <= 1.10.0.post2' 'numpy' \
|
||||
--replace 'argparse==1.2.1' "" \
|
||||
--replace 'protobuf==3.0.0a3' 'protobuf' \
|
||||
--replace 'noise==1.2.2' 'noise' \
|
||||
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
||||
'';
|
||||
|
||||
doCheck = !isPy27; # google namespace clash
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
"TestSerialization"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "http://world-engine.org";
|
||||
description = "World generator using simulation of plates, rain shadow, erosion, etc";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ rardiol ];
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue