python3Packages.pulsectl: modernize and migrate to pyproject (#522892)

This commit is contained in:
Martin Weinelt
2026-05-22 07:41:20 +00:00
committed by GitHub
@@ -8,15 +8,17 @@
stdenv,
pulseaudio,
unittestCheckHook,
setuptools,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "pulsectl";
version = "24.12.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
inherit (finalAttrs) pname version;
hash = "sha256-KI1nFSMqxvPc2xI/vsqiwLmlDqQIfm6Hw/hBqwqKB/w=";
};
@@ -28,21 +30,20 @@ buildPythonPackage rec {
})
];
build-system = [ setuptools ];
pythonImportsCheck = [ "pulsectl" ];
nativeCheckInputs = [
writableTmpDirAsHomeHook
unittestCheckHook
pulseaudio
];
preCheck = ''
export HOME=$TMPDIR
'';
meta = {
description = "Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)";
homepage = "https://github.com/mk-fg/python-pulse-control";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
}
})