1{ 2 lib, 3 buildPythonPackage, 4 poetry-core, 5 fetchFromGitHub, 6 pytestCheckHook, 7 pythonOlder, 8 click, 9}: 10 11buildPythonPackage rec { 12 pname = "kml2geojson"; 13 version = "5.1.0"; 14 format = "pyproject"; 15 16 disabled = pythonOlder "3.8"; 17 18 src = fetchFromGitHub { 19 owner = "mrcagney"; 20 repo = "kml2geojson"; 21 rev = version; 22 hash = "sha256-iJEcXpvy+Y3MkxAF2Q1Tkcx8GxUVjeVzv6gl134zdiI="; 23 }; 24 25 nativeBuildInputs = [ poetry-core ]; 26 27 propagatedBuildInputs = [ click ]; 28 29 nativeCheckInputs = [ pytestCheckHook ]; 30 31 pythonImportsCheck = [ "kml2geojson" ]; 32 33 meta = with lib; { 34 description = "Library to convert KML to GeoJSON"; 35 mainProgram = "k2g"; 36 homepage = "https://github.com/mrcagney/kml2geojson"; 37 license = licenses.mit; 38 maintainers = with maintainers; [ fab ]; 39 }; 40}