pythonPackages.worldengine: enable testing
This commit is contained in:
parent
a431dd265c
commit
ec95007936
@ -28605,11 +28605,25 @@ EOF
|
|||||||
name = "worldengine-${version}";
|
name = "worldengine-${version}";
|
||||||
version = "0.19.0";
|
version = "0.19.0";
|
||||||
|
|
||||||
src = pkgs.fetchurl {
|
src = pkgs.fetchFromGitHub {
|
||||||
url = "mirror://pypi/w/worldengine/${name}.tar.gz";
|
owner = "Mindwerks";
|
||||||
sha256 = "0wnpp0zm4idc4242a970yf1blf8y2f1ikwha0q781wfz1dg4z0i6";
|
repo = "worldengine";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "1xrckb0dn2841gvp32n18gib14bpi77hmjw3r9jiyhg402iip7ry";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
src-data = pkgs.fetchFromGitHub {
|
||||||
|
owner = "Mindwerks";
|
||||||
|
repo = "worldengine-data";
|
||||||
|
rev = "029051e";
|
||||||
|
sha256 = "06xbf8gj3ljgr11v1n8jbs2q8pdf9wz53xdgkhpm8hdnjahgdxdm";
|
||||||
|
};
|
||||||
|
|
||||||
|
postUnpack = ''
|
||||||
|
ln -s ${src-data} worldengine-data
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = with self; [ nose ];
|
||||||
propagatedBuildInputs = with self; [ noise numpy pyplatec protobuf3_2 purepng argparse h5py gdal ];
|
propagatedBuildInputs = with self; [ noise numpy pyplatec protobuf3_2 purepng argparse h5py gdal ];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
@ -28622,6 +28636,11 @@ EOF
|
|||||||
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
doCheck = true;
|
||||||
|
postCheck = ''
|
||||||
|
nosetests tests
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://world-engine.org;
|
homepage = http://world-engine.org;
|
||||||
description = "World generator using simulation of plates, rain shadow, erosion, etc";
|
description = "World generator using simulation of plates, rain shadow, erosion, etc";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user