1{ lib 2, buildPythonPackage 3, dateparser 4, defusedxml 5, fetchFromGitHub 6, fiona 7, geomet 8, geopandas 9, kml2geojson 10, pyshp 11, pythonOlder 12, pyyaml 13, regex 14, requests 15, shapely 16, scikit-learn 17}: 18 19buildPythonPackage rec { 20 pname = "wktutils"; 21 version = "1.1.6"; 22 format = "setuptools"; 23 24 disabled = pythonOlder "3.7"; 25 26 src = fetchFromGitHub { 27 owner = "asfadmin"; 28 repo = "Discovery-WKTUtils"; 29 rev = "refs/tags/v${version}"; 30 hash = "sha256-PFeIMIFOff9ztdmIP7jcFzKkmhm01G0QnDm20AafUsg="; 31 }; 32 33 propagatedBuildInputs = [ 34 dateparser 35 defusedxml 36 fiona 37 geomet 38 geopandas 39 kml2geojson 40 pyshp 41 pyyaml 42 regex 43 requests 44 shapely 45 scikit-learn 46 ]; 47 48 postPatch = '' 49 substituteInPlace setup.py \ 50 --replace "sklearn" "scikit-learn" 51 ''; 52 53 # Module doesn't have tests 54 doCheck = false; 55 56 pythonImportsCheck = [ 57 "WKTUtils" 58 ]; 59 60 meta = with lib; { 61 description = "Collection of tools for handling WKTs"; 62 homepage = "https://github.com/asfadmin/Discovery-WKTUtils"; 63 license = licenses.bsd3; 64 maintainers = with maintainers; [ fab ]; 65 }; 66}