printrun: migrate to pythonRelaxDepsHook

This commit is contained in:
Peder Bergebakken Sundt 2025-02-21 17:42:26 +01:00
parent 93a249f882
commit 5ca79898de

View file

@ -18,12 +18,14 @@ python3Packages.buildPythonApplication rec {
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "pyglet >= 1.1, < 2.0" "pyglet" \
--replace "cairosvg >= 1.0.9, < 2.6.0" "cairosvg"
sed -i -r "s|/usr(/local)?/share/|$out/share/|g" printrun/utils.py
'';
pythonRelaxDeps = [
"pyglet"
"cairosvg"
];
nativeBuildInputs = [
glib
wrapGAppsHook3