nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #231735 from Dettorer/fix-mapnik

python3Packages.python-mapnik: fix build on x86_64

authored by

Martin Weinelt and committed by
GitHub
9ab371d5 285330f0

+10 -3
+9 -2
pkgs/development/python-modules/python-mapnik/default.nix
··· 8 8 , pillow 9 9 , pycairo 10 10 , pkg-config 11 - , boost 11 + , boost182 12 12 , cairo 13 13 , harfbuzz 14 14 , icu ··· 23 23 , sqlite 24 24 , nose 25 25 , pytestCheckHook 26 + , stdenv 26 27 }: 27 28 28 29 buildPythonPackage rec { ··· 61 60 62 61 buildInputs = [ 63 62 mapnik 64 - boost 63 + boost182 65 64 cairo 66 65 harfbuzz 67 66 icu ··· 99 98 preCheck = '' 100 99 # import from $out 101 100 rm -r mapnik 101 + '' + lib.optionalString stdenv.isDarwin '' 102 + # Replace the hardcoded /tmp references with $TMPDIR 103 + sed -i "s,/tmp,$TMPDIR,g" test/python_tests/*.py 102 104 ''; 103 105 104 106 # https://github.com/mapnik/python-mapnik/issues/255 ··· 110 106 "test_compare_map" 111 107 "test_dataraster_coloring" 112 108 "test_dataraster_query_point" 109 + "test_geometry_type" 113 110 "test_good_files" 114 111 "test_layer_init" 115 112 "test_load_save_map" ··· 133 128 "test_visual_zoom_all_rendering1" 134 129 "test_visual_zoom_all_rendering2" 135 130 "test_wgs84_inverse_forward" 131 + ] ++ lib.optional stdenv.isDarwin [ 132 + "test_passing_pycairo_context_pdf" 136 133 ]; 137 134 138 135 pythonImportsCheck = [ "mapnik" ];
+1 -1
pkgs/top-level/python-packages.nix
··· 9757 9757 9758 9758 python-mapnik = callPackage ../development/python-modules/python-mapnik rec { 9759 9759 inherit (pkgs) pkg-config cairo icu libjpeg libpng libtiff libwebp proj zlib; 9760 - boost = pkgs.boost.override { 9760 + boost182 = pkgs.boost182.override { 9761 9761 enablePython = true; 9762 9762 inherit python; 9763 9763 };