package.nix (1116B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 python3Packages, 6 }: 7 8 python3Packages.buildPythonPackage (finalAttrs: { 9 pname = "geoutils"; 10 version = "0.2.5"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "GlacioHack"; 15 repo = "geoutils"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-uwWIFdNeGoOs5mLIgIMQ+TB1716dmwVTgwWIotIb+cY="; 18 }; 19 20 postPatch = '' 21 substituteInPlace pyproject.toml \ 22 --replace-fail "setuptools_scm[toml]>=8,<9.0" "setuptools_scm[toml]" 23 ''; 24 25 build-system = with python3Packages; [ setuptools-scm ]; 26 27 pythonRelaxDeps = true; 28 29 dependencies = with python3Packages; [ 30 affine 31 dask 32 geopandas 33 matplotlib 34 numpy 35 pandas 36 pyproj 37 rasterio 38 rioxarray 39 scipy 40 shapely 41 tqdm 42 xarray 43 ]; 44 45 doCheck = false; # requires network access 46 47 meta = { 48 description = "Analysis of georeferenced rasters, vectors and point clouds"; 49 homepage = "https://github.com/GlacioHack/geoutils"; 50 license = lib.licenses.asl20; 51 maintainers = [ lib.maintainers.sikmir ]; 52 broken = stdenv.isDarwin; # postgresql-test-hook 53 }; 54 })
