From 67512331eb8317dd07982f39486f1f071ac0d3a1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 12 Jun 2022 14:10:09 +0200 Subject: [PATCH] python310Packages.kml2geojson: init at 5.1.0 --- .../python-modules/kml2geojson/default.nix | 46 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 48 insertions(+) create mode 100644 pkgs/development/python-modules/kml2geojson/default.nix diff --git a/pkgs/development/python-modules/kml2geojson/default.nix b/pkgs/development/python-modules/kml2geojson/default.nix new file mode 100644 index 000000000000..6ceb71a9e5be --- /dev/null +++ b/pkgs/development/python-modules/kml2geojson/default.nix @@ -0,0 +1,46 @@ +{ 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 = pname; + rev = version; + hash = "sha256-iJEcXpvy+Y3MkxAF2Q1Tkcx8GxUVjeVzv6gl134zdiI="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + click + ]; + + checkInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "kml2geojson" + ]; + + meta = with lib; { + description = "Library to convert KML to GeoJSON"; + homepage = "https://github.com/mrcagney/kml2geojson"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6fd6fcae0409..39dfd257c4db 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4743,6 +4743,8 @@ in { kmapper = callPackage ../development/python-modules/kmapper { }; + kml2geojson = callPackage ../development/python-modules/kml2geojson { }; + kmsxx = toPythonModule (pkgs.kmsxx.override { withPython = true; });