2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
psutil,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
}:
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-04-21 15:54:59 +00:00
|
|
|
pname = "command-runner";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "1.7.0";
|
2024-05-15 15:35:15 +00:00
|
|
|
pyproject = true;
|
2023-10-19 13:55:26 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "netinvent";
|
|
|
|
repo = "command_runner";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-rdbZtqNndtIxrLA90eWzR6dB8EyFrBALduBUkOVq4oE=";
|
2023-10-19 13:55:26 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [ psutil ];
|
|
|
|
|
|
|
|
# Tests are execute ping
|
|
|
|
# ping: socket: Operation not permitted
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "command_runner" ];
|
2023-10-19 13:55:26 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/netinvent/command_runner";
|
|
|
|
description = ''
|
|
|
|
Platform agnostic command execution, timed background jobs with live
|
|
|
|
stdout/stderr output capture, and UAC/sudo elevation
|
|
|
|
'';
|
2024-05-15 15:35:15 +00:00
|
|
|
changelog = "https://github.com/netinvent/command_runner/releases/tag/v${version}";
|
2023-10-19 13:55:26 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = teams.wdz.members;
|
|
|
|
};
|
|
|
|
}
|