depot/third_party/nixpkgs/pkgs/development/python-modules/setproctitle/default.nix
Default email 75ca762b89 Project import generated by Copybara.
GitOrigin-RevId: 29b0d4d0b600f8f5dd0b86e3362a33d4181938f9
2021-03-09 11:18:52 +08:00

31 lines
770 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "setproctitle";
version = "1.2.2";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "7dfb472c8852403d34007e01d6e3c68c57eb66433fb8a5c77b13b89a160d97df";
};
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 ];
};
}