2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
2023-04-12 12:48:02 +00:00
|
|
|
, magic
|
2022-04-27 09:35:20 +00:00
|
|
|
, pexpect
|
2023-04-12 12:48:02 +00:00
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sosreport";
|
2024-09-19 14:19:46 +00:00
|
|
|
version = "4.8.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sosreport";
|
|
|
|
repo = "sos";
|
2024-01-25 14:12:00 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2024-09-19 14:19:46 +00:00
|
|
|
sha256 = "sha256-8laOHFBvlSo70filTd84vMiivcZ9hE8rgFThVVrMwtE=";
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2023-04-12 12:48:02 +00:00
|
|
|
magic
|
2022-04-27 09:35:20 +00:00
|
|
|
pexpect
|
2023-04-12 12:48:02 +00:00
|
|
|
pyyaml
|
|
|
|
setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# 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;
|
2024-07-31 10:19:44 +00:00
|
|
|
maintainers = [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|