5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
48 lines
892 B
Nix
48 lines
892 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, gettext
|
|
, magic
|
|
, pexpect
|
|
, pyyaml
|
|
, setuptools
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sosreport";
|
|
version = "4.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sosreport";
|
|
repo = "sos";
|
|
rev = version;
|
|
sha256 = "sha256-xbL/4CmDnygiL/u3Jsa6fAkO4YfklDzuFMsxSGy1Ra4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
gettext
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
magic
|
|
pexpect
|
|
pyyaml
|
|
setuptools
|
|
];
|
|
|
|
# requires avocado-framework 94.0, latest version as of writing is 96.0
|
|
doCheck = false;
|
|
|
|
preCheck = ''
|
|
export PYTHONPATH=$PWD/tests:$PYTHONPATH
|
|
'';
|
|
|
|
pythonImportsCheck = [ "sos" ];
|
|
|
|
meta = with lib; {
|
|
description = "Unified tool for collecting system logs and other debug information";
|
|
homepage = "https://github.com/sosreport/sos";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|