diff options
author | Josef Kemetmüller <josef.kemetmueller@gmail.com> | 2018-09-30 13:46:18 +0200 |
---|---|---|
committer | Josef Kemetmüller <josef.kemetmueller@gmail.com> | 2018-09-30 14:20:53 +0200 |
commit | be6451e0205ecf779986128b0f7e0171cb64803a (patch) | |
tree | aaed257667a3b15ab79948831d8f05fc9920796e | |
parent | b1857daa254354ee3f71e70f8b1bb609611e701c (diff) | |
download | nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar.gz nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar.bz2 nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar.lz nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar.xz nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.tar.zst nixlib-be6451e0205ecf779986128b0f7e0171cb64803a.zip |
pythonPackages.python-mapnik: Fix build
There were two things to fix: - Boost started shipping libboost_python.so as libboost_python{Major}{Minor} - Make sure that mapnik and boost link to the correct version of python.
-rw-r--r-- | pkgs/top-level/python-packages.nix | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 157f45f3f2a9..758f84c1a099 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -3345,19 +3345,43 @@ in { python-mapnik = buildPythonPackage rec { name = "python-mapnik-${version}"; - version = "3.0.13"; + version = "3.0.16"; src = pkgs.fetchFromGitHub { owner = "mapnik"; repo = "python-mapnik"; rev = "v${version}"; - sha256 = "0biw9bfkbsgfyjihyvkj4abx9s9r3h81rk6dc1y32022rypsqhkp"; + sha256 = "1gqs4kvmjawdgl80j0ab5r8y0va9kw0rvwix3093xsv4hwd00lcc"; }; disabled = isPyPy; doCheck = false; # doesn't find needed test data files - buildInputs = with pkgs; - [ boost cairo harfbuzz icu libjpeg libpng libtiff libwebp mapnik proj zlib ]; + preBuild = let + pythonVersion = with stdenv.lib.versions; "${major python.version}${minor python.version}"; + in '' + export BOOST_PYTHON_LIB="boost_python${pythonVersion}" + export BOOST_THREAD_LIB="boost_thread" + export BOOST_SYSTEM_LIB="boost_system" + ''; + buildInputs = with pkgs; [ + (boost.override { + enablePython = true; + inherit python; + }) + (mapnik.override { + inherit python; + boost = (boost.override { enablePython = true; inherit python; }); + }) + cairo + harfbuzz + icu + libjpeg + libpng + libtiff + libwebp + proj + zlib + ]; propagatedBuildInputs = with self; [ pillow pycairo ]; meta = with stdenv.lib; { |