nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 67 lines 1.2 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 dateparser, 5 defusedxml, 6 fetchFromGitHub, 7 geomet, 8 geopandas, 9 kml2geojson, 10 pyshp, 11 pyyaml, 12 requests, 13 setuptools-scm, 14 shapely, 15 scikit-learn, 16}: 17 18buildPythonPackage rec { 19 pname = "wktutils"; 20 version = "2.0.0"; 21 pyproject = true; 22 23 src = fetchFromGitHub { 24 owner = "asfadmin"; 25 repo = "Discovery-WKTUtils"; 26 tag = "v${version}"; 27 hash = "sha256-mB+joEZq/aFPcRqFAzPgwG26Wi7WiRCeQeFottk+4Ho="; 28 }; 29 30 postPatch = '' 31 substituteInPlace pyproject.toml \ 32 --replace-fail '"twine",' "" 33 ''; 34 35 build-system = [ setuptools-scm ]; 36 37 dependencies = [ 38 dateparser 39 defusedxml 40 geomet 41 geopandas 42 kml2geojson 43 pyshp 44 pyyaml 45 shapely 46 ]; 47 48 optional-dependencies = { 49 extras = [ 50 requests 51 scikit-learn 52 ]; 53 }; 54 55 # Module doesn't have tests 56 doCheck = false; 57 58 pythonImportsCheck = [ "WKTUtils" ]; 59 60 meta = { 61 description = "Collection of tools for handling WKTs"; 62 homepage = "https://github.com/asfadmin/Discovery-WKTUtils"; 63 changelog = "https://github.com/asfadmin/Discovery-WKTUtils/blob/v${version}/CHANGELOG.md"; 64 license = lib.licenses.bsd3; 65 maintainers = with lib.maintainers; [ fab ]; 66 }; 67}