package.nix (1020B)
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 postPatch = '' 21 substituteInPlace ./setup.py --replace-fail 'version="0.10.0",' 'version="${finalAttrs.version}",' 22 ''; 23 24 build-system = with python3Packages; [ setuptools ]; 25 26 dependencies = with python3Packages; [ 27 geopandas 28 keyring 29 matplotlib 30 numpy 31 platformdirs 32 rasterio 33 requests 34 scikit-image 35 ]; 36 37 doCheck = false; 38 39 meta = { 40 description = "A package built to support working with spatial data using open source python"; 41 homepage = "https://github.com/earthlab/earthpy"; 42 license = lib.licenses.bsd3; 43 maintainers = [ lib.maintainers.sikmir ]; 44 broken = stdenv.isDarwin; # postgresql-test-hook 45 }; 46 })
