commit
2fde83b5bd
40
pkgs/development/libraries/mapnik/default.nix
Normal file
40
pkgs/development/libraries/mapnik/default.nix
Normal file
@ -0,0 +1,40 @@
|
||||
{ stdenv, fetchurl
|
||||
, boost, cairo, freetype, gdal, harfbuzz, icu, libjpeg, libpng, libtiff
|
||||
, libwebp, libxml2, proj, python, scons, sqlite, zlib
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "mapnik-${version}";
|
||||
version = "3.0.9";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://mapnik.s3.amazonaws.com/dist/v${version}/mapnik-v${version}.tar.bz2";
|
||||
sha256 = "1nnkamwq4vcg4q2lbqn7cn8sannxszzjxcxsllksby055d9nfgrs";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ python scons ];
|
||||
|
||||
buildInputs =
|
||||
[ boost cairo freetype gdal harfbuzz icu libjpeg libpng libtiff
|
||||
libwebp libxml2 proj python sqlite zlib
|
||||
];
|
||||
|
||||
configurePhase = ''
|
||||
scons configure PREFIX="$out"
|
||||
'';
|
||||
|
||||
buildPhase = false;
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p "$out"
|
||||
scons install
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "An open source toolkit for developing mapping applications";
|
||||
homepage = http://mapnik.org;
|
||||
maintainers = with maintainers; [ hrdinka ];
|
||||
license = licenses.lgpl21;
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
@ -7729,6 +7729,8 @@ let
|
||||
|
||||
lzo = callPackage ../development/libraries/lzo { };
|
||||
|
||||
mapnik = callPackage ../development/libraries/mapnik { };
|
||||
|
||||
matio = callPackage ../development/libraries/matio { };
|
||||
|
||||
mbedtls = callPackage ../development/libraries/mbedtls { };
|
||||
|
@ -5089,6 +5089,27 @@ in modules // {
|
||||
};
|
||||
};
|
||||
|
||||
python-mapnik = buildPythonPackage {
|
||||
name = "python-mapnik-fae6388";
|
||||
|
||||
src = pkgs.fetchgit {
|
||||
url = https://github.com/mapnik/python-mapnik.git;
|
||||
rev = "fae63881ed0945829e73f711d52740240b740936";
|
||||
sha256 = "13i9zsy0dk9pa947vfq26a3nrn1ddknqliyb0ljcmi5w5x0z758k";
|
||||
};
|
||||
|
||||
disabled = isPyPy;
|
||||
doCheck = false; # doesn't find needed test data files
|
||||
buildInputs = with pkgs; [ boost harfbuzz icu mapnik ];
|
||||
propagatedBuildInputs = with self; [ pillow pycairo ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Python bindings for Mapnik";
|
||||
homepage = http://mapnik.org;
|
||||
license = licenses.lgpl21;
|
||||
};
|
||||
};
|
||||
|
||||
mwlib = buildPythonPackage rec {
|
||||
version = "0.15.15";
|
||||
name = "mwlib-${version}";
|
||||
|
Loading…
Reference in New Issue
Block a user