diff options
| author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-05-22 18:02:13 +0200 |
|---|---|---|
| committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2024-05-22 18:02:13 +0200 |
| commit | 9b4fb239930f3ec1bbbe6aae4404e09d69272d97 (patch) | |
| tree | b775fecba2a2671aa59ec661a7e091dd06fcfd9f /pkgs/development/python-modules/python-mapnik | |
| parent | 38df468246bdd4cf3af2daf496326d690c4483e5 (diff) | |
| parent | 9f46451cf3d158323809a874a02b0d2892cb2a35 (diff) | |
Merge remote-tracking branch 'origin/master' into staging-next
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik')
| -rw-r--r-- | pkgs/development/python-modules/python-mapnik/default.nix | 82 |
1 files changed, 42 insertions, 40 deletions
diff --git a/pkgs/development/python-modules/python-mapnik/default.nix b/pkgs/development/python-modules/python-mapnik/default.nix index 044199f6c2a6..a68a618ccd46 100644 --- a/pkgs/development/python-modules/python-mapnik/default.nix +++ b/pkgs/development/python-modules/python-mapnik/default.nix @@ -1,29 +1,30 @@ -{ lib -, buildPythonPackage -, fetchFromGitHub -, fetchpatch -, substituteAll -, isPyPy -, python -, pillow -, pycairo -, pkg-config -, boost -, cairo -, harfbuzz -, icu -, libjpeg -, libpng -, libtiff -, libwebp -, mapnik -, proj -, zlib -, libxml2 -, sqlite -, nose -, pytestCheckHook -, stdenv +{ + lib, + buildPythonPackage, + fetchFromGitHub, + fetchpatch, + substituteAll, + isPyPy, + python, + pillow, + pycairo, + pkg-config, + boost, + cairo, + harfbuzz, + icu, + libjpeg, + libpng, + libtiff, + libwebp, + mapnik, + proj, + zlib, + libxml2, + sqlite, + nose, + pytestCheckHook, + stdenv, }: buildPythonPackage rec { @@ -72,12 +73,13 @@ buildPythonPackage rec { sqlite ]; - propagatedBuildInputs = [ pillow pycairo ]; - - configureFlags = [ - "XMLPARSER=libxml2" + propagatedBuildInputs = [ + pillow + pycairo ]; + configureFlags = [ "XMLPARSER=libxml2" ]; + disabled = isPyPy; preBuild = '' @@ -93,13 +95,15 @@ buildPythonPackage rec { pytestCheckHook ]; - 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 - ''; + 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 disabledTests = [ @@ -111,9 +115,7 @@ buildPythonPackage rec { "test_pdf_printing" "test_visual_zoom_all_rendering2" "test_wgs84_inverse_forward" - ] ++ lib.optionals stdenv.isDarwin [ - "test_passing_pycairo_context_svg" - ]; + ] ++ lib.optionals stdenv.isDarwin [ "test_passing_pycairo_context_svg" ]; pythonImportsCheck = [ "mapnik" ]; |
