1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 psutil,
6 pythonOlder,
7 setuptools,
8}:
9
10buildPythonPackage rec {
11 pname = "command-runner";
12 version = "1.6.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "netinvent";
19 repo = "command_runner";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-QzqkcF2/YExK/dz+b0Uk0Af/rAXRMuRIeEynyFgDql8=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ psutil ];
27
28 # Tests are execute ping
29 # ping: socket: Operation not permitted
30 doCheck = false;
31
32 pythonImportsCheck = [ "command_runner" ];
33
34 meta = with lib; {
35 homepage = "https://github.com/netinvent/command_runner";
36 description = ''
37 Platform agnostic command execution, timed background jobs with live
38 stdout/stderr output capture, and UAC/sudo elevation
39 '';
40 changelog = "https://github.com/netinvent/command_runner/releases/tag/v${version}";
41 license = licenses.bsd3;
42 maintainers = teams.wdz.members;
43 };
44}