From ec9500793666395844a1409d702013f9e23b1291 Mon Sep 17 00:00:00 2001 From: Ricardo Ardissone Date: Thu, 23 Mar 2017 00:22:16 -0300 Subject: [PATCH] pythonPackages.worldengine: enable testing --- pkgs/top-level/python-packages.nix | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e62fb2fb6593..94d667cba36c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -28605,11 +28605,25 @@ EOF name = "worldengine-${version}"; version = "0.19.0"; - src = pkgs.fetchurl { - url = "mirror://pypi/w/worldengine/${name}.tar.gz"; - sha256 = "0wnpp0zm4idc4242a970yf1blf8y2f1ikwha0q781wfz1dg4z0i6"; + src = pkgs.fetchFromGitHub { + owner = "Mindwerks"; + 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 ]; prePatch = '' @@ -28622,6 +28636,11 @@ EOF --replace 'PyPlatec==1.4.0' 'PyPlatec' \ ''; + doCheck = true; + postCheck = '' + nosetests tests + ''; + meta = { homepage = http://world-engine.org; description = "World generator using simulation of plates, rain shadow, erosion, etc";