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-01-25 14:12:00 +00:00
|
|
|
version = "4.6.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}";
|
|
|
|
sha256 = "sha256-IW3b+zAxXnr7H+/XxJA+tJZYNte1nVdDaMhW3TcGxzo=";
|
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
|
|
|
};
|
|
|
|
}
|