mapserver: fix python package install (#408911)

This commit is contained in:
Ivan Mincik
2025-06-16 09:21:46 +02:00
committed by GitHub
+8
View File
@@ -47,6 +47,7 @@ stdenv.mkDerivation rec {
++ lib.optionals withPython [
swig
python3.pkgs.setuptools
python3.pkgs.pythonImportsCheckHook
];
buildInputs = [
@@ -82,6 +83,13 @@ stdenv.mkDerivation rec {
(lib.cmakeBool "CMAKE_SKIP_BUILD_RPATH" true)
];
postInstall = lib.optionalString withPython ''
mkdir -p $out/${python3.sitePackages}
cp -r src/mapscript/python/mapscript $out/${python3.sitePackages}
'';
pythonImportsCheck = [ "mapscript" ];
meta = {
description = "Platform for publishing spatial data and interactive mapping applications to the web";
homepage = "https://mapserver.org/";