diff options
Diffstat (limited to 'pkgs/development/python-modules/pygmt/default.nix')
-rw-r--r-- | pkgs/development/python-modules/pygmt/default.nix | 54 |
1 files changed, 24 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/pygmt/default.nix b/pkgs/development/python-modules/pygmt/default.nix index c455bbcfab16..7bba01e4e44e 100644 --- a/pkgs/development/python-modules/pygmt/default.nix +++ b/pkgs/development/python-modules/pygmt/default.nix @@ -1,25 +1,25 @@ -{ lib -, stdenv -, pythonOlder -, buildPythonPackage -, fetchFromGitHub -, setuptools-scm -, gmt -, numpy -, netcdf4 -, pandas -, packaging -, xarray -, pytest-mpl -, ipython -, ghostscript -, pytestCheckHook +{ + lib, + pythonOlder, + buildPythonPackage, + fetchFromGitHub, + setuptools-scm, + gmt, + numpy, + netcdf4, + pandas, + packaging, + xarray, + pytest-mpl, + ipython, + ghostscript, + pytestCheckHook, }: buildPythonPackage rec { pname = "pygmt"; - version = "0.11.0"; - format = "pyproject"; + version = "0.13.0"; + pyproject = true; disabled = pythonOlder "3.9"; @@ -27,17 +27,15 @@ buildPythonPackage rec { owner = "GenericMappingTools"; repo = "pygmt"; rev = "refs/tags/v${version}"; - hash = "sha256-DbewB/lP44bpNSQ4ht7n0coS2Ml7qmEU4CP91p5YtZg="; + hash = "sha256-DO9KUlmt5EV+ioOSQ/BOcx4pP409f94dzmFwqK2MwMY="; }; postPatch = '' substituteInPlace pygmt/clib/loading.py \ - --replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")" + --replace-fail "env.get(\"GMT_LIBRARY_PATH\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")" ''; - nativeBuildInputs = [ - setuptools-scm - ]; + nativeBuildInputs = [ setuptools-scm ]; propagatedBuildInputs = [ numpy @@ -61,17 +59,13 @@ buildPythonPackage rec { export HOME=$TMP ''; - pythonImportsCheck = [ - "pygmt" - ]; + pythonImportsCheck = [ "pygmt" ]; meta = with lib; { - description = "A Python interface for the Generic Mapping Tools"; + description = "Python interface for the Generic Mapping Tools"; homepage = "https://github.com/GenericMappingTools/pygmt"; license = licenses.bsd3; changelog = "https://github.com/GenericMappingTools/pygmt/releases/tag/v${version}"; - # pygmt.exceptions.GMTCLibNotFoundError: Error loading the GMT shared library '/nix/store/r3xnnqgl89vrnq0kzxx0bmjwzks45mz8-gmt-6.1.1/lib/libgmt.dylib' - broken = stdenv.isDarwin; - maintainers = with maintainers; [ sikmir ]; + maintainers = with maintainers; teams.geospatial.members; }; } |