159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
44 lines
1,014 B
Nix
44 lines
1,014 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
psutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "command-runner";
|
|
version = "1.7.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netinvent";
|
|
repo = "command_runner";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-rdbZtqNndtIxrLA90eWzR6dB8EyFrBALduBUkOVq4oE=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ psutil ];
|
|
|
|
# Tests are execute ping
|
|
# ping: socket: Operation not permitted
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "command_runner" ];
|
|
|
|
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
|
|
'';
|
|
changelog = "https://github.com/netinvent/command_runner/releases/tag/v${version}";
|
|
license = licenses.bsd3;
|
|
maintainers = teams.wdz.members;
|
|
};
|
|
}
|