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";
|
2020-11-29 14:04:42 +00:00
|
|
|
version = "1.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;
|
2020-11-29 14:04:42 +00:00
|
|
|
sha256 = "9b4e48722dd96cbd66d5bf2eab930fff8546cd551dd8d774c8a319448bd381a6";
|
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 ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|