python3Packages.shapely: fix build
This commit is contained in:
parent
253f59e039
commit
cf33ca630d
@ -34,7 +34,7 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# environment variable used in shapely/_buildcfg.py
|
# Environment variable used in shapely/_buildcfg.py
|
||||||
GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
|
GEOS_LIBRARY_PATH = "${geos}/lib/libgeos_c${stdenv.hostPlatform.extensions.sharedLibrary}";
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
@ -48,18 +48,12 @@ buildPythonPackage rec {
|
|||||||
".travis.yml"
|
".travis.yml"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
|
||||||
# Patch to search form GOES .so/.dylib files in a Nix-aware way
|
# Patch to search form GOES .so/.dylib files in a Nix-aware way
|
||||||
(substituteAll {
|
(substituteAll {
|
||||||
src = ./library-paths.patch;
|
src = ./library-paths.patch;
|
||||||
libgeos_c = GEOS_LIBRARY_PATH;
|
libgeos_c = GEOS_LIBRARY_PATH;
|
||||||
libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6";
|
libc = lib.optionalString (!stdenv.isDarwin) "${stdenv.cc.libc}/lib/libc${stdenv.hostPlatform.extensions.sharedLibrary}.6";
|
||||||
})
|
})
|
||||||
# included in next release.
|
|
||||||
(fetchpatch {
|
|
||||||
url = "https://github.com/Toblerity/Shapely/commit/ea5b05a0c87235d3d8f09930ad47c396a76c8b0c.patch";
|
|
||||||
sha256 = "sha256-egdydlV+tpXosSQwQFHaXaeBhXEHAs+mn7vLUDpvybA=";
|
|
||||||
})
|
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
preCheck = ''
|
||||||
@ -70,9 +64,12 @@ buildPythonPackage rec {
|
|||||||
"test_collection"
|
"test_collection"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "shapely" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Geometric objects, predicates, and operations";
|
description = "Geometric objects, predicates, and operations";
|
||||||
maintainers = with maintainers; [ knedlsepp ];
|
|
||||||
homepage = "https://pypi.python.org/pypi/Shapely/";
|
homepage = "https://pypi.python.org/pypi/Shapely/";
|
||||||
|
license = with licenses; [ bsd3 ];
|
||||||
|
maintainers = with maintainers; [ knedlsepp ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user