summary refs log tree commit diff
diff options
context:
space:
mode:
authorFabian Affolter <mail@fabian-affolter.ch>2023-01-28 14:17:53 +0100
committerFabian Affolter <mail@fabian-affolter.ch>2023-01-28 14:32:03 +0100
commitb58ed75dcdcd493be2c2116ca460ebf28114ec57 (patch)
tree11dd15e436a1c0b4247e88418bce60f9c69df889
parent2b9581da296b9d6ae98e27d65ff104718c97dbf1 (diff)
downloadnixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar.gz
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar.bz2
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar.lz
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar.xz
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.tar.zst
nixpkgs-b58ed75dcdcd493be2c2116ca460ebf28114ec57.zip
python310Packages.rasterio: add changelog to meta
-rw-r--r--pkgs/development/python-modules/rasterio/default.nix44
1 files changed, 20 insertions, 24 deletions
diff --git a/pkgs/development/python-modules/rasterio/default.nix b/pkgs/development/python-modules/rasterio/default.nix
index 48fda6557a4..ce4c65ddbb0 100644
--- a/pkgs/development/python-modules/rasterio/default.nix
+++ b/pkgs/development/python-modules/rasterio/default.nix
@@ -1,44 +1,38 @@
 { lib
 , stdenv
-, buildPythonPackage
-, fetchFromGitHub
-, pythonOlder
-
-# build time
-, cython
-, gdal
-
-# runtime
 , affine
 , attrs
 , boto3
+, buildPythonPackage
 , click
 , click-plugins
 , cligj
+, cython
+, fetchFromGitHub
+, gdal
+, hypothesis
 , matplotlib
 , numpy
-, snuggs
-, setuptools
-
-# tests
-, hypothesis
 , packaging
 , pytest-randomly
 , pytestCheckHook
+, pythonOlder
+, setuptools
 , shapely
+, snuggs
 }:
 
 buildPythonPackage rec {
   pname = "rasterio";
-  version = "4"; # not x.y[ab]z, those are alpha/beta versions
+  version = "4"; 
   format = "pyproject";
+
   disabled = pythonOlder "3.6";
 
-  # Pypi doesn't ship the tests, so we fetch directly from GitHub
   src = fetchFromGitHub {
     owner = "rasterio";
     repo = "rasterio";
-    rev = "refs/tags/release-test-${version}";
+    rev = "refs/tags/${version}";
     hash = "sha256-YO0FnmIEt+88f6k2mdXDSQg7UKq1Swr8wqVUGdRyQR4=";
   };
 
@@ -60,18 +54,18 @@ buildPythonPackage rec {
     setuptools # needs pkg_resources at runtime
   ];
 
-  preCheck = ''
-    rm -rf rasterio
-  '';
-
   nativeCheckInputs = [
+    hypothesis
+    packaging
     pytest-randomly
     pytestCheckHook
-    packaging
-    hypothesis
     shapely
   ];
 
+  preCheck = ''
+    rm -rf rasterio
+  '';
+
   pytestFlagsArray = [
     "-m 'not network'"
   ];
@@ -85,13 +79,15 @@ buildPythonPackage rec {
   ];
 
   doInstallCheck = true;
+
   installCheckPhase = ''
     $out/bin/rio --version | grep ${version} > /dev/null
   '';
 
   meta = with lib; {
     description = "Python package to read and write geospatial raster data";
-    homepage = "https://rasterio.readthedocs.io/en/latest/";
+    homepage = "https://rasterio.readthedocs.io/";
+    changelog = "https://github.com/rasterio/rasterio/blob/1.3.5/CHANGES.txt";
     license = licenses.bsd3;
     maintainers = with maintainers; [ mredaelli ];
   };