depot/third_party/nixpkgs/pkgs/development/python-modules/kml2geojson/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

40 lines
804 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 = pname;
rev = version;
hash = "sha256-iJEcXpvy+Y3MkxAF2Q1Tkcx8GxUVjeVzv6gl134zdiI=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [ click ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "kml2geojson" ];
meta = with lib; {
description = "Library to convert KML to GeoJSON";
mainProgram = "k2g";
homepage = "https://github.com/mrcagney/kml2geojson";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}