about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOTABI Tomoya <tomoya.otabi@gmail.com>2024-01-25 23:12:00 +0900
committerGitHub <noreply@github.com>2024-01-25 23:12:00 +0900
commitae5c332cbb5827f6b1f02572496b141021de335f (patch)
tree5096ece40f24f1e760f4f90d7b7d2adb201798e6
parentd7d7e123b332b4da5008fdcc56253c437e1387ff (diff)
parent51723c2eac7ab16544bca076a89e3c3ac5ea1ed5 (diff)
downloadnixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar.gz
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar.bz2
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar.lz
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar.xz
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.tar.zst
nixlib-ae5c332cbb5827f6b1f02572496b141021de335f.zip
Merge pull request #282165 from r-ryantm/auto-update/python311Packages.rtree
python311Packages.rtree: 1.1.0 -> 1.2.0
-rw-r--r--pkgs/development/python-modules/rtree/default.nix30
1 files changed, 20 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/rtree/default.nix b/pkgs/development/python-modules/rtree/default.nix
index b4a2cc68ab8f..ff4b3b85e9cf 100644
--- a/pkgs/development/python-modules/rtree/default.nix
+++ b/pkgs/development/python-modules/rtree/default.nix
@@ -1,23 +1,27 @@
 { lib
 , stdenv
 , buildPythonPackage
-, fetchPypi
+, fetchFromGitHub
 , libspatialindex
 , numpy
 , pytestCheckHook
 , pythonOlder
+, setuptools
+, wheel
 }:
 
 buildPythonPackage rec {
   pname = "rtree";
-  version = "1.1.0";
-  format = "setuptools";
-  disabled = pythonOlder "3.7";
-
-  src = fetchPypi {
-    pname = "Rtree";
-    inherit version;
-    hash = "sha256-b47lBN3l0AWyWwiq9b4LNASvOtX+zm4d3N41kIp5ipU=";
+  version = "1.2.0";
+  pyproject = true;
+
+  disabled = pythonOlder "3.8";
+
+  src = fetchFromGitHub {
+    owner = "Toblerity";
+    repo = "rtree";
+    rev = "refs/tags/${version}";
+    hash = "sha256-RmAiyYrkUMBN/ebmo27WvFcRmYlKkywuQHLLUbluTTw=";
   };
 
   postPatch = ''
@@ -25,6 +29,11 @@ buildPythonPackage rec {
       'find_library("spatialindex_c")' '"${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}"'
   '';
 
+  nativeBuildInputs = [
+    setuptools
+    wheel
+  ];
+
   buildInputs = [ libspatialindex ];
 
   nativeCheckInputs = [
@@ -36,7 +45,8 @@ buildPythonPackage rec {
 
   meta = with lib; {
     description = "R-Tree spatial index for Python GIS";
-    homepage = "https://toblerity.org/rtree/";
+    homepage = "https://github.com/Toblerity/rtree";
+    changelog = "https://github.com/Toblerity/rtree/blob/${version}/CHANGES.rst";
     license = licenses.mit;
     maintainers = with maintainers; [ bgamari ];
   };