13 buildPythonPackage rec {
17 disabled = pythonOlder "3.6";
19 src = fetchFromGitHub {
20 owner = "GenericMappingTools";
23 sha256 = "1yx1n6mxfmwg69ls5560nm6d3jxyghv27981iplz7m7990bbp468";
27 substituteInPlace pygmt/clib/loading.py \
28 --replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
31 propagatedBuildInputs = [ numpy netcdf4 pandas packaging xarray ];
33 doCheck = false; # requires network access
35 postBuild = "export HOME=$TMP";
37 pythonImportsCheck = [ "pygmt" ];
40 description = "A Python interface for the Generic Mapping Tools";
41 homepage = "https://github.com/GenericMappingTools/pygmt";
42 license = licenses.bsd3;
43 # pygmt.exceptions.GMTCLibNotFoundError: Error loading the GMT shared library '/nix/store/r3xnnqgl89vrnq0kzxx0bmjwzks45mz8-gmt-6.1.1/lib/libgmt.dylib'
44 broken = stdenv.isDarwin;
45 maintainers = with maintainers; [ sikmir ];