2025-05-23 08:37:19 -07:00

36 lines
831 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchPypi,
setuptools,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "setproctitle";
version = "1.3.6";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-yfMrlscAuzhPM/fPB5VLtgnTXdgnUs71f7LuCWhAkWk=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [ pytestCheckHook ];
# tries to compile programs with dependencies that aren't available
disabledTestPaths = [ "tests/setproctitle_test.py" ];
meta = with lib; {
description = "Allows a process to change its title (as displayed by system tools such as ps and top)";
homepage = "https://github.com/dvarrazzo/py-setproctitle";
license = licenses.bsdOriginal;
maintainers = with maintainers; [ exi ];
};
}