From 92376558f6837bd05834bfdaaa747574c3c99069 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 5 Apr 2023 08:58:41 +0200 Subject: [PATCH] python310Packages.pygmt: equalize --- .../python-modules/pygmt/default.nix | 33 +++++++++++++++---- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/pygmt/default.nix b/pkgs/development/python-modules/pygmt/default.nix index 63ed4eb038c9..a6e4c9a613aa 100644 --- a/pkgs/development/python-modules/pygmt/default.nix +++ b/pkgs/development/python-modules/pygmt/default.nix @@ -1,4 +1,5 @@ -{ lib, stdenv +{ lib +, stdenv , pythonOlder , buildPythonPackage , fetchFromGitHub @@ -34,15 +35,35 @@ buildPythonPackage rec { --replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")" ''; - nativeBuildInputs = [ setuptools-scm ]; - propagatedBuildInputs = [ numpy netcdf4 pandas packaging xarray ]; + nativeBuildInputs = [ + setuptools-scm + ]; + + propagatedBuildInputs = [ + numpy + netcdf4 + pandas + packaging + xarray + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-mpl + ghostscript + ipython + ]; + + # The *entire* test suite requires network access + doCheck = false; - doCheck = false; # the *entire* test suite requires network access - nativeCheckInputs = [ pytestCheckHook pytest-mpl ghostscript ipython ]; postBuild = '' export HOME=$TMP ''; - pythonImportsCheck = [ "pygmt" ]; + + pythonImportsCheck = [ + "pygmt" + ]; meta = with lib; { description = "A Python interface for the Generic Mapping Tools";