diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-28 14:35:29 +0100 |
---|---|---|
committer | Fabian Affolter <mail@fabian-affolter.ch> | 2023-01-28 14:35:29 +0100 |
commit | 43dd4300ac4df5c486a860d75c60e8e0049ee8bc (patch) | |
tree | 9f9d9596c427716f31918677062c4df1eaab6b1a | |
parent | 9fe4560f258f33e17ba2d68279a9fd9f30e3d2d5 (diff) | |
download | nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar.gz nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar.bz2 nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar.lz nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar.xz nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.tar.zst nixpkgs-43dd4300ac4df5c486a860d75c60e8e0049ee8bc.zip |
python310Packages.rasterio: test-4 -> 1.3.5
Changelog: https://github.com/rasterio/rasterio/blob/1.3.5/CHANGES.txt
-rw-r--r-- | pkgs/development/python-modules/rasterio/default.nix | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix index ce4c65ddbb0..16661032fff 100644 --- a/pkgs/development/python-modules/rasterio/default.nix +++ b/pkgs/development/python-modules/rasterio/default.nix @@ -7,11 +7,13 @@ , click , click-plugins , cligj +, certifi , cython , fetchFromGitHub , gdal , hypothesis , matplotlib +, ipython , numpy , packaging , pytest-randomly @@ -24,16 +26,16 @@ buildPythonPackage rec { pname = "rasterio"; - version = "4"; + version = "1.3.5"; format = "pyproject"; - disabled = pythonOlder "3.6"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "rasterio"; repo = "rasterio"; rev = "refs/tags/${version}"; - hash = "sha256-YO0FnmIEt+88f6k2mdXDSQg7UKq1Swr8wqVUGdRyQR4="; + hash = "sha256-VZE58xbTTAicGqkl8ktYBhN+5tFj8FoUYxg8fi05bmo="; }; nativeBuildInputs = [ @@ -44,16 +46,27 @@ buildPythonPackage rec { propagatedBuildInputs = [ affine attrs - boto3 click click-plugins cligj - matplotlib + certifi numpy snuggs - setuptools # needs pkg_resources at runtime + setuptools ]; + passthru.optional-dependencies = { + ipython = [ + ipython + ]; + plot = [ + matplotlib + ]; + s3 = [ + boto3 + ]; + }; + nativeCheckInputs = [ hypothesis packaging @@ -62,10 +75,6 @@ buildPythonPackage rec { shapely ]; - preCheck = '' - rm -rf rasterio - ''; - pytestFlagsArray = [ "-m 'not network'" ]; @@ -87,7 +96,7 @@ buildPythonPackage rec { meta = with lib; { description = "Python package to read and write geospatial raster data"; homepage = "https://rasterio.readthedocs.io/"; - changelog = "https://github.com/rasterio/rasterio/blob/1.3.5/CHANGES.txt"; + changelog = "https://github.com/rasterio/rasterio/blob/${version}/CHANGES.txt"; license = licenses.bsd3; maintainers = with maintainers; [ mredaelli ]; }; |