Merge pull request #282165 from r-ryantm/auto-update/python311Packages.rtree
python311Packages.rtree: 1.1.0 -> 1.2.0
This commit is contained in:
commit
ae5c332cbb
1 changed files with 19 additions and 9 deletions
|
@ -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";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "Rtree";
|
||||
inherit version;
|
||||
hash = "sha256-b47lBN3l0AWyWwiq9b4LNASvOtX+zm4d3N41kIp5ipU=";
|
||||
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 ];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue