python3Packages.pycups: modernize and migrate to pyproject (#523013)

This commit is contained in:
Peder Bergebakken Sundt
2026-06-30 21:47:18 +00:00
committed by GitHub
@@ -5,18 +5,21 @@
fetchPypi,
cups,
libiconv,
setuptools,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pycups";
version = "2.0.4";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-hD44XB2/aUmWyoTvAqfzDCg3YDVYj1++rNa64AXPfI0=";
};
build-system = [ setuptools ];
buildInputs = [ cups ] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
# Wants to connect to CUPS
@@ -27,4 +30,4 @@ buildPythonPackage rec {
homepage = "http://cyberelk.net/tim/software/pycups/";
license = with lib.licenses; [ gpl2Plus ];
};
}
})