nixpkgs/pkgs/development/python-modules/setproctitle/default.nix
2022-09-19 10:37:43 +02:00

31 lines
757 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "setproctitle";
version = "1.3.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-ufuXkHyDDSYPoGWO1Yr9SKhrK4iqxSETXDUv9/00d/0=";
};
checkInputs = [ pytestCheckHook ];
# tries to compile programs with dependencies that aren't available
pytestFlagsArray = [ "--ignore=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 ];
};
}