Files
nixpkgs/pkgs/development/python-modules/kml2geojson/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

41 lines
810 B
Nix

{
lib,
buildPythonPackage,
poetry-core,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
click,
}:
buildPythonPackage rec {
pname = "kml2geojson";
version = "5.1.0";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "mrcagney";
repo = "kml2geojson";
rev = version;
hash = "sha256-iJEcXpvy+Y3MkxAF2Q1Tkcx8GxUVjeVzv6gl134zdiI=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "kml2geojson" ];
meta = {
description = "Library to convert KML to GeoJSON";
mainProgram = "k2g";
homepage = "https://github.com/mrcagney/kml2geojson";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}