Files
nixpkgs/pkgs/development/python-modules/kml2geojson/default.nix
2026-03-15 15:17:18 +01:00

38 lines
761 B
Nix

{
lib,
buildPythonPackage,
click,
fetchFromGitHub,
hatchling,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "kml2geojson";
version = "5.1.1";
pyproject = true;
src = fetchFromGitHub {
owner = "mrcagney";
repo = "kml2geojson";
tag = finalAttrs.version;
hash = "sha256-50hKosd4tgTV5GUXHAdTsz4S5QFtM7FTqUHy5TGcq0c=";
};
build-system = [ hatchling ];
dependencies = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "kml2geojson" ];
meta = {
description = "Library to convert KML to GeoJSON";
homepage = "https://github.com/mrcagney/kml2geojson";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "k2g";
};
})