mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-21 21:09:00 +02:00
Merge pull request #232739 from figsoda/worldengine
worldengine-cli: fix build
This commit is contained in:
commit
172435103e
|
@ -1,14 +1,15 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, isPy27
|
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, gdal
|
||||||
|
, h5py
|
||||||
, noise
|
, noise
|
||||||
, numpy
|
, numpy
|
||||||
, pyplatec
|
|
||||||
, protobuf
|
, protobuf
|
||||||
, purepng
|
, purepng
|
||||||
, h5py
|
, pyplatec
|
||||||
, gdal
|
, six
|
||||||
|
, isPy27
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
|
@ -34,7 +35,16 @@ buildPythonPackage rec {
|
||||||
ln -s ${src-data} worldengine-data
|
ln -s ${src-data} worldengine-data
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ noise numpy pyplatec protobuf purepng h5py gdal ];
|
propagatedBuildInputs = [
|
||||||
|
gdal
|
||||||
|
h5py
|
||||||
|
noise
|
||||||
|
numpy
|
||||||
|
protobuf
|
||||||
|
purepng
|
||||||
|
pyplatec
|
||||||
|
six
|
||||||
|
];
|
||||||
|
|
||||||
prePatch = ''
|
prePatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
|
@ -44,6 +54,10 @@ buildPythonPackage rec {
|
||||||
--replace 'protobuf==3.0.0a3' 'protobuf' \
|
--replace 'protobuf==3.0.0a3' 'protobuf' \
|
||||||
--replace 'noise==1.2.2' 'noise' \
|
--replace 'noise==1.2.2' 'noise' \
|
||||||
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
--replace 'PyPlatec==1.4.0' 'PyPlatec' \
|
||||||
|
|
||||||
|
substituteInPlace \
|
||||||
|
worldengine/{draw.py,hdf5_serialization.py} \
|
||||||
|
--replace numpy.float float
|
||||||
'';
|
'';
|
||||||
|
|
||||||
doCheck = !isPy27; # google namespace clash
|
doCheck = !isPy27; # google namespace clash
|
||||||
|
@ -59,5 +73,4 @@ buildPythonPackage rec {
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ rardiol ];
|
maintainers = with maintainers; [ rardiol ];
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue