19 buildPythonPackage rec {
24 disabled = pythonOlder "3.9";
26 src = fetchFromGitHub {
27 owner = "GenericMappingTools";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-DO9KUlmt5EV+ioOSQ/BOcx4pP409f94dzmFwqK2MwMY=";
34 substituteInPlace pygmt/clib/loading.py \
35 --replace-fail "env.get(\"GMT_LIBRARY_PATH\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
38 nativeBuildInputs = [ setuptools-scm ];
40 propagatedBuildInputs = [
55 # The *entire* test suite requires network access
62 pythonImportsCheck = [ "pygmt" ];
65 description = "Python interface for the Generic Mapping Tools";
66 homepage = "https://github.com/GenericMappingTools/pygmt";
67 license = licenses.bsd3;
68 changelog = "https://github.com/GenericMappingTools/pygmt/releases/tag/v${version}";
69 maintainers = with maintainers; teams.geospatial.members;