package.nix (893B)
1 { 2 lib, 3 stdenv, 4 python3Packages, 5 fetchFromGitHub, 6 }: 7 8 python3Packages.buildPythonPackage (finalAttrs: { 9 pname = "earthpy"; 10 version = "0.10.1"; 11 pyproject = true; 12 13 src = fetchFromGitHub { 14 owner = "earthlab"; 15 repo = "earthpy"; 16 tag = "v${finalAttrs.version}"; 17 hash = "sha256-2ThKdynYCnCR0ViE0yeK8BJjtexVdYGU4oOqBAUb9Yw="; 18 }; 19 20 build-system = with python3Packages; [ setuptools ]; 21 22 dependencies = with python3Packages; [ 23 geopandas 24 keyring 25 matplotlib 26 numpy 27 platformdirs 28 rasterio 29 requests 30 scikit-image 31 ]; 32 33 doCheck = false; 34 35 meta = { 36 description = "A package built to support working with spatial data using open source python"; 37 homepage = "https://github.com/earthlab/earthpy"; 38 license = lib.licenses.bsd3; 39 maintainers = [ lib.maintainers.sikmir ]; 40 broken = stdenv.isDarwin; # postgresql-test-hook 41 }; 42 })
