python312Packages.pygmt: modernize

This commit is contained in:
Nikolay Korotkiy
2025-01-10 22:03:01 +04:00
parent bab178e0a3
commit 4dd3edece4
@@ -21,7 +21,7 @@ buildPythonPackage rec {
version = "0.14.0";
pyproject = true;
disabled = pythonOlder "3.9";
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "GenericMappingTools";
@@ -35,9 +35,9 @@ buildPythonPackage rec {
--replace-fail "env.get(\"GMT_LIBRARY_PATH\")" "env.get(\"GMT_LIBRARY_PATH\", \"${gmt}/lib\")"
'';
nativeBuildInputs = [ setuptools-scm ];
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
numpy
netcdf4
pandas
@@ -61,11 +61,11 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pygmt" ];
meta = with lib; {
meta = {
description = "Python interface for the Generic Mapping Tools";
homepage = "https://github.com/GenericMappingTools/pygmt";
license = licenses.bsd3;
license = lib.licenses.bsd3;
changelog = "https://github.com/GenericMappingTools/pygmt/releases/tag/v${version}";
maintainers = with maintainers; teams.geospatial.members;
maintainers = lib.teams.geospatial.members;
};
}