diff options
Diffstat (limited to 'pkgs/development/python-modules/kml2geojson/default.nix')
-rw-r--r-- | pkgs/development/python-modules/kml2geojson/default.nix | 46 |
1 files changed, 46 insertions, 0 deletions
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 ]; + }; +} |