Skip to content

Commit

Permalink
python.pkgs.python-mapnik: fix build
Browse files Browse the repository at this point in the history
fallout of #54182
  • Loading branch information
Robert Schütz committed Mar 21, 2019
1 parent 76bfc09 commit 8519983
Showing 1 changed file with 29 additions and 20 deletions.
49 changes: 29 additions & 20 deletions pkgs/development/python-modules/python-mapnik/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,16 @@
, pycairo
}:

buildPythonPackage rec {
let
boost = pkgs.boost.override {
enablePython = true;
inherit python;
};
mapnik = pkgs.mapnik.override {
inherit python boost;
};

in buildPythonPackage rec {
pname = "python-mapnik";
version = "3.0.16";

Expand All @@ -28,25 +37,25 @@ buildPythonPackage rec {
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
];

nativeBuildInputs = [
mapnik # for mapnik_config
];

buildInputs = [
mapnik
boost
] ++ (with pkgs; [
cairo
harfbuzz
icu
libjpeg
libpng
libtiff
libwebp
proj
zlib
]);
propagatedBuildInputs = [ pillow pycairo ];

meta = with stdenv.lib; {
Expand Down

0 comments on commit 8519983

Please sign in to comment.