python3Packages.pygmt: fix build
This commit is contained in:
parent
08b00c20e0
commit
e7296ab998
1 changed files with 11 additions and 4 deletions
|
@ -2,12 +2,17 @@
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
|
, setuptools-scm
|
||||||
, gmt
|
, gmt
|
||||||
, numpy
|
, numpy
|
||||||
, netcdf4
|
, netcdf4
|
||||||
, pandas
|
, pandas
|
||||||
, packaging
|
, packaging
|
||||||
, xarray
|
, xarray
|
||||||
|
, pytest-mpl
|
||||||
|
, ipython
|
||||||
|
, ghostscript
|
||||||
|
, pytestCheckHook
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -28,12 +33,14 @@ buildPythonPackage rec {
|
||||||
--replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
|
--replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools-scm ];
|
||||||
propagatedBuildInputs = [ numpy netcdf4 pandas packaging xarray ];
|
propagatedBuildInputs = [ numpy netcdf4 pandas packaging xarray ];
|
||||||
|
|
||||||
doCheck = false; # requires network access
|
doCheck = false; # the *entire* test suite requires network access
|
||||||
|
checkInputs = [ pytestCheckHook pytest-mpl ghostscript ipython ];
|
||||||
postBuild = "export HOME=$TMP";
|
postBuild = ''
|
||||||
|
export HOME=$TMP
|
||||||
|
'';
|
||||||
pythonImportsCheck = [ "pygmt" ];
|
pythonImportsCheck = [ "pygmt" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
Loading…
Reference in a new issue