summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/pygmt/default.nix
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
committerRobin Gloster <mail@glob.in>2021-05-24 09:55:24 -0500
commit4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch)
treee2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/pygmt/default.nix
parentjq: fix build with structured-attrs on darwin (diff)
parentMerge pull request #123802 from superherointj/package-virtmanager-bugfix (diff)
downloadnixpkgs-origin/structured-attrs.tar.gz
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/pygmt/default.nix')
-rw-r--r--pkgs/development/python-modules/pygmt/default.nix15
1 files changed, 11 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pygmt/default.nix b/pkgs/development/python-modules/pygmt/default.nix
index 130be6d44c36..804b33c2f791 100644
--- a/pkgs/development/python-modules/pygmt/default.nix
+++ b/pkgs/development/python-modules/pygmt/default.nix
@@ -2,12 +2,17 @@
, pythonOlder
, buildPythonPackage
, fetchFromGitHub
+, setuptools-scm
, gmt
, numpy
, netcdf4
, pandas
, packaging
, xarray
+, pytest-mpl
+, ipython
+, ghostscript
+, pytestCheckHook
}:
buildPythonPackage rec {
@@ -28,12 +33,14 @@ buildPythonPackage rec {
--replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
'';
+ nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ numpy netcdf4 pandas packaging xarray ];
- doCheck = false; # requires network access
-
- postBuild = "export HOME=$TMP";
-
+ doCheck = false; # the *entire* test suite requires network access
+ checkInputs = [ pytestCheckHook pytest-mpl ghostscript ipython ];
+ postBuild = ''
+ export HOME=$TMP
+ '';
pythonImportsCheck = [ "pygmt" ];
meta = with lib; {