system-config-printer: use pep517 build tools

Makes things build with Python 3.12, for now.

K900 84241351 e6273255

Changed files
+21 -1
pkgs
tools
misc
system-config-printer
+5 -1
pkgs/tools/misc/system-config-printer/default.nix
···
sha256 = "sha256-JCdGmZk2vRn3X1BDxOJaY3Aw8dr0ODVzi0oY20ZWfRs=";
excludes = [ "NEWS" ];
})
+
+
# switch to pep517 build tools
+
./pep517.patch
];
buildInputs = [
···
nativeBuildInputs = [
pkg-config gettext libtool autoconf-archive
xmlto libxml2 docbook_xml_dtd_412 docbook_xsl desktop-file-utils
-
python3Packages.wrapPython
+
python3Packages.wrapPython python3Packages.build python3Packages.installer
+
python3Packages.setuptools python3Packages.wheel
wrapGAppsHook3 autoreconfHook gobject-introspection
];
+16
pkgs/tools/misc/system-config-printer/pep517.patch
···
+
--- a/Makefile.am
+
+++ b/Makefile.am
+
@@ -59,11 +59,11 @@ dbus/org.fedoraproject.Config.Printing.service: dbus/org.fedoraproject.Config.Pr
+
+
# Use distutils to build the module.
+
all-local: .stamp-distutils-in-builddir config.py cupshelpers/config.py
+
- $(PYTHON) setup.py build
+
+ $(PYTHON) -m build --no-isolation --outdir dist/ --wheel
+
+
# Use distutils to install the module.
+
install-exec-local: .stamp-distutils-in-builddir
+
- $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix)
+
+ $(PYTHON) -m installer --prefix=$(prefix) dist/*.whl
+
+
# Uninstall the module, crossing our fingers that we know enough
+
# about how distutils works to do this. Unfortunately, distutils