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