567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
991 B
Nix
45 lines
991 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
psutil,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "command-runner";
|
|
version = "1.7.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "netinvent";
|
|
repo = "command_runner";
|
|
tag = "v${version}";
|
|
hash = "sha256-jGYIz+c6wt137b8kG1QVVAvBAaJQAzNnZyKVeKHIk5c=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ psutil ];
|
|
|
|
# Tests are execute ping
|
|
# ping: socket: Operation not permitted
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "command_runner" ];
|
|
|
|
meta = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.bsd3;
|
|
teams = [ lib.teams.wdz ];
|
|
};
|
|
}
|