mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
python3Packages.Rtree: fix build
Patching broke on recent version bump, this fixes and re-enables tests. Also corrects license.
This commit is contained in:
parent
33dc20d1ab
commit
a063e76966
@ -1,4 +1,11 @@
|
||||
{ lib, stdenv, buildPythonPackage, fetchPypi, libspatialindex, numpy }:
|
||||
{ lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
libspatialindex,
|
||||
numpy,
|
||||
pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Rtree";
|
||||
@ -9,21 +16,23 @@ buildPythonPackage rec {
|
||||
sha256 = "be8772ca34699a9ad3fb4cfe2cfb6629854e453c10b3328039301bbfc128ca3e";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ libspatialindex ];
|
||||
buildInputs = [ libspatialindex ];
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace rtree/core.py --replace \
|
||||
substituteInPlace rtree/finder.py --replace \
|
||||
"find_library('spatialindex_c')" "'${libspatialindex}/lib/libspatialindex_c${stdenv.hostPlatform.extensions.sharedLibrary}'"
|
||||
'';
|
||||
|
||||
# Tests appear to be broken due to mysterious memory unsafe issues. See #36760
|
||||
doCheck = false;
|
||||
checkInputs = [ numpy ];
|
||||
checkInputs = [
|
||||
numpy
|
||||
pytestCheckHook
|
||||
];
|
||||
pythonImportsCheck = [ "rtree" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "R-Tree spatial index for Python GIS";
|
||||
homepage = "https://toblerity.org/rtree/";
|
||||
license = licenses.lgpl21;
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ bgamari ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user