Merge pull request #21321 from rardiol/worldengine

Worldengine
This commit is contained in:
Michael Raskin 2017-04-30 10:28:40 +02:00 committed by GitHub
commit d729a25a3e
2 changed files with 99 additions and 0 deletions

View File

@ -16148,6 +16148,8 @@ with pkgs;
inherit (python27Packages) cheetah;
};
worldengine-cli = python3Packages.worldengine;
wpsoffice = callPackage ../applications/office/wpsoffice {};
wrapFirefox = callPackage ../applications/networking/browsers/firefox/wrapper.nix { };

View File

@ -1627,6 +1627,23 @@ in {
};
};
noise = buildPythonPackage rec {
name = "noise-${version}";
version = "1.2.2";
src = pkgs.fetchurl {
url = "mirror://pypi/n/noise/${name}.tar.gz";
sha256 = "0rcv40dcshqpchwkdlhsv3n68h9swm9fh4d1cgzr2hsp6rs7k8jp";
};
meta = with stdenv.lib; {
homepage = "https://github.com/caseman/noise";
description = "Native-code and shader implementations of Perlin noise";
license = licenses.mit;
platforms = platforms.all;
};
};
awscli = buildPythonPackage rec {
name = "awscli-${version}";
version = "1.11.75";
@ -21265,6 +21282,38 @@ in {
};
};
pyplatec = buildPythonPackage rec {
name = "PyPlatec-${version}";
version = "1.4.0";
src = pkgs.fetchurl {
url = "mirror://pypi/P/PyPlatec/${name}.tar.gz";
sha256 = "0kqx33flcrrlipccmqs78d14pj5749bp85b6k5fgaq2c7yzz02jg";
};
meta = {
description = "Library to simulate plate tectonics with Python bindings";
homepage = https://github.com/Mindwerks/plate-tectonics;
license = licenses.lgpl3;
};
};
purepng = buildPythonPackage rec {
name = "purepng-${version}";
version = "0.2.0";
src = pkgs.fetchurl {
url = "mirror://pypi/p/purepng/${name}.tar.gz";
sha256 = "1kcl7a6d7d59360fbz2jwfk6ha6pmqgn396962p4s62j893d2r0d";
};
meta = {
description = "Pure Python library for PNG image encoding/decoding";
homepage = https://github.com/scondo/purepng;
license = licenses.mit;
};
};
pymaging = buildPythonPackage rec {
name = "pymaging-unstable-2016-11-16";
@ -28274,6 +28323,54 @@ EOF
};
};
worldengine = buildPythonPackage rec {
name = "worldengine-${version}";
version = "0.19.0";
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 = ''
substituteInPlace setup.py \
--replace pypng>=0.0.18 purepng \
--replace 'numpy>=1.9.2, <= 1.10.0.post2' 'numpy' \
--replace 'argparse==1.2.1' 'argparse' \
--replace 'protobuf==3.0.0a3' 'protobuf' \
--replace 'noise==1.2.2' 'noise' \
--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";
platforms = platforms.all;
maintainers = with maintainers; [ rardiol ];
};
};
carbon = buildPythonPackage rec {
name = "carbon-${version}";
version = graphiteVersion;