summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik
diff options
context:
space:
mode:
authorMartin Weinelt <mweinelt@users.noreply.github.com>2023-05-14 19:16:03 +0200
committerGitHub <noreply@github.com>2023-05-14 19:16:03 +0200
commit9ab371d5d55cc29c0413044a4a890399d4fdaefa (patch)
treef02f6d3a70b0fc6114d554a73feb42e4356265fc /pkgs/development/python-modules/python-mapnik
parent285330f081169c7a5735465fe640095355896650 (diff)
parentcfe4464d7e8cf2f67fd6c8d3c3b534de75d676c1 (diff)
Merge pull request #231735 from Dettorer/fix-mapnik
python3Packages.python-mapnik: fix build on x86_64
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
-rw-r--r--pkgs/development/python-modules/python-mapnik/default.nix11
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/python-mapnik/default.nix b/pkgs/development/python-modules/python-mapnik/default.nix
index 18df3e4d5655..a6e42d2369b6 100644
--- a/pkgs/development/python-modules/python-mapnik/default.nix
+++ b/pkgs/development/python-modules/python-mapnik/default.nix
@@ -8,7 +8,7 @@
, pillow
, pycairo
, pkg-config
-, boost
+, boost182
, cairo
, harfbuzz
, icu
@@ -23,6 +23,7 @@
, sqlite
, nose
, pytestCheckHook
+, stdenv
}:
buildPythonPackage rec {
@@ -60,7 +61,7 @@ buildPythonPackage rec {
buildInputs = [
mapnik
- boost
+ boost182
cairo
harfbuzz
icu
@@ -98,6 +99,9 @@ buildPythonPackage rec {
preCheck = ''
# import from $out
rm -r mapnik
+ '' + lib.optionalString stdenv.isDarwin ''
+ # Replace the hardcoded /tmp references with $TMPDIR
+ sed -i "s,/tmp,$TMPDIR,g" test/python_tests/*.py
'';
# https://github.com/mapnik/python-mapnik/issues/255
@@ -106,6 +110,7 @@ buildPythonPackage rec {
"test_compare_map"
"test_dataraster_coloring"
"test_dataraster_query_point"
+ "test_geometry_type"
"test_good_files"
"test_layer_init"
"test_load_save_map"
@@ -128,6 +133,8 @@ buildPythonPackage rec {
"test_visual_zoom_all_rendering1"
"test_visual_zoom_all_rendering2"
"test_wgs84_inverse_forward"
+ ] ++ lib.optional stdenv.isDarwin [
+ "test_passing_pycairo_context_pdf"
];
pythonImportsCheck = [ "mapnik" ];