2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-29 17:29:09 +00:00
|
|
|
, buildPythonPackage
|
2021-02-04 14:53:23 +00:00
|
|
|
, pythonOlder
|
2018-10-29 17:29:09 +00:00
|
|
|
, fetchPypi
|
2020-12-01 01:32:45 +00:00
|
|
|
, pytestCheckHook
|
2018-10-29 17:29:09 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-05-08 20:31:37 +01:00
|
|
|
pname = "setproctitle";
|
2021-02-20 09:09:16 +00:00
|
|
|
version = "1.2.2";
|
2018-10-29 17:29:09 +00:00
|
|
|
|
2021-02-04 14:53:23 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2018-10-29 17:29:09 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:16 +00:00
|
|
|
sha256 = "7dfb472c8852403d34007e01d6e3c68c57eb66433fb8a5c77b13b89a160d97df";
|
2018-10-29 17:29:09 +00:00
|
|
|
};
|
|
|
|
|
2020-12-01 01:32:45 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
|
|
|
|
|
|
|
# tries to compile programs with dependencies that aren't available
|
|
|
|
pytestFlagsArray = [ "--ignore=tests/setproctitle_test.py" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-29 17:29:09 +00:00
|
|
|
description = "Allows a process to change its title (as displayed by system tools such as ps and top)";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/dvarrazzo/py-setproctitle";
|
2018-10-29 17:29:09 +00:00
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ exi ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|