kapidox: fix build with python packages

This commit is contained in:
André Vitor de Lima Matos 2022-05-14 19:23:34 -03:00
parent be20107809
commit a2e8dd2e74

View file

@ -1,9 +1,25 @@
{ mkDerivation, lib, extra-cmake-modules, python3 }:
{ mkDerivation, python3, qtbase }:
mkDerivation {
pname = "kapidox";
nativeBuildInputs = [ extra-cmake-modules python3 python3.pkgs.setuptools ];
postFixup = ''
moveToOutput bin $bin
buildInputs = with python3.pkgs; [ jinja2 pyyaml requests ];
nativeBuildInputs = with python3.pkgs; [ qtbase setuptools ];
patchPhase = ''
sed -i -e 's|"doxy\w\+", ||g' setup.py
'';
buildPhase = ''
runHook preBuild
${python3.interpreter} setup.py build
runHook postBuild
'';
installPhase = ''
runHook preInstall
${python3.interpreter} setup.py install --prefix="$out"
runHook postInstall
'';
outputs = [ "out" ];
}