diff options
author | Nikolay Korotkiy <sikmir@disroot.org> | 2022-06-02 18:05:01 +0300 |
---|---|---|
committer | Jonathan Ringer <jonringer117@gmail.com> | 2022-06-06 11:46:17 -0700 |
commit | eebbe8c318f9875827675078ea45c1607bad5cce (patch) | |
tree | c14067b30dee770b1b76841430df2d16c81d164d /pkgs/development/python-modules/Rtree/default.nix | |
parent | a972e002a8cb43582756d246bc8268b84710ccee (diff) | |
download | nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar.gz nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar.bz2 nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar.lz nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar.xz nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.tar.zst nixpkgs-eebbe8c318f9875827675078ea45c1607bad5cce.zip |
python3Packages.Rtree: 0.9.7 → 1.0.0
Diffstat (limited to 'pkgs/development/python-modules/Rtree/default.nix')
-rw-r--r-- | pkgs/development/python-modules/Rtree/default.nix | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/pkgs/development/python-modules/Rtree/default.nix b/pkgs/development/python-modules/Rtree/default.nix index eb4dae8e3aa..0c599b18d73 100644 --- a/pkgs/development/python-modules/Rtree/default.nix +++ b/pkgs/development/python-modules/Rtree/default.nix @@ -1,32 +1,36 @@ -{ lib, - stdenv, - buildPythonPackage, - fetchPypi, - libspatialindex, - numpy, - pytestCheckHook +{ lib +, stdenv +, buildPythonPackage +, fetchPypi +, libspatialindex +, numpy +, pytestCheckHook +, pythonOlder }: buildPythonPackage rec { - pname = "Rtree"; - version = "0.9.7"; + pname = "rtree"; + version = "1.0.0"; + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e"; + pname = "Rtree"; + inherit version; + sha256 = "sha256-0Eg0ghITRrCTuaQlGNQPkhrfRFkVt66jB+smdoyDloI="; }; - buildInputs = [ libspatialindex ]; - - patchPhase = '' + postPatch = '' substituteInPlace rtree/finder.py --replace \ - "find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'" + 'find_library("spatialindex_c")' '"${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}"' ''; + buildInputs = [ libspatialindex ]; + checkInputs = [ numpy pytestCheckHook ]; + pythonImportsCheck = [ "rtree" ]; meta = with lib; { |