2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
fetchPypi,
|
|
|
|
setuptools,
|
|
|
|
pytestCheckHook,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "setproctitle";
|
2024-01-13 08:15:51 +00:00
|
|
|
version = "1.3.3";
|
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-13 08:15:51 +00:00
|
|
|
hash = "sha256-yRPhUefqAVZ4N/8DeiPKh0AZKIAZi3+7kLFtGBYHyq4=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-13 08:15:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
|
|
|
# tries to compile programs with dependencies that aren't available
|
2024-06-05 15:53:02 +00:00
|
|
|
disabledTestPaths = [ "tests/setproctitle_test.py" ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Allows a process to change its title (as displayed by system tools such as ps and top)";
|
2024-06-05 15:53:02 +00:00
|
|
|
homepage = "https://github.com/dvarrazzo/py-setproctitle";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ exi ];
|
|
|
|
};
|
|
|
|
}
|