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