blob: aa1211029abbd6cc93f7a1ac5a23192843f408ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pytestCheckHook,
procps,
stdenv,
}:
buildPythonPackage rec {
pname = "setproctitle";
version = "1.3.7";
pyproject = true;
src = fetchFromGitHub {
owner = "dvarrazzo";
repo = "py-setproctitle";
tag = "version-${version}";
hash = "sha256-dfOdtfOXRAoCQLW307+YMsFIWRv4CupbKUxckev1oUw=";
};
build-system = [ setuptools ];
nativeCheckInputs = [
pytestCheckHook
procps
];
# Setting the process title fails on macOS in the Nix builder environment (regardless of sandboxing)
disabledTests = lib.optionals stdenv.hostPlatform.isDarwin [ "test_setproctitle_darwin" ];
pythonImportsCheck = [ "setproctitle" ];
meta = {
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";
changelog = "https://github.com/dvarrazzo/py-setproctitle/blob/${src.tag}/HISTORY.rst";
license = lib.licenses.bsd3;
maintainers = with lib.maintainers; [ exi ];
};
}
|