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-04-21 15:54:59 +00:00
|
|
|
version = "4.7.1";
|
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-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-usa4xSNAv0AaML7qv5kCQDA3VMz4IneLFDVyv7uPUcQ=";
|
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;
|
2023-08-04 22:07:22 +00:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|