19 buildPythonPackage rec {
24 disabled = pythonOlder "3.9";
26 src = fetchFromGitHub {
27 owner = "GenericMappingTools";
29 rev = "refs/tags/v${version}";
30 hash = "sha256-+bkjqHjJIwk44u226q6xqeGmwMWleyc4lRfMZdDjVBA=";
34 substituteInPlace pygmt/clib/loading.py \
35 --replace "env.get(\"GMT_LIBRARY_PATH\", \"\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
42 propagatedBuildInputs = [
57 # The *entire* test suite requires network access
64 pythonImportsCheck = [
69 description = "A Python interface for the Generic Mapping Tools";
70 homepage = "https://github.com/GenericMappingTools/pygmt";
71 license = licenses.bsd3;
72 changelog = "https://github.com/GenericMappingTools/pygmt/releases/tag/v${version}";
73 # pygmt.exceptions.GMTCLibNotFoundError: Error loading the GMT shared library '/nix/store/r3xnnqgl89vrnq0kzxx0bmjwzks45mz8-gmt-6.1.1/lib/libgmt.dylib'
74 broken = stdenv.isDarwin;
75 maintainers = with maintainers; [ sikmir ];