2022-04-27 13:18:37 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gettext
|
2022-12-08 14:34:28 +01:00
|
|
|
, magic
|
2022-04-27 13:18:37 +02:00
|
|
|
, pexpect
|
2022-12-08 14:34:28 +01:00
|
|
|
, pyyaml
|
|
|
|
, setuptools
|
2022-04-27 13:18:37 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sosreport";
|
2022-12-08 14:34:28 +01:00
|
|
|
version = "4.4";
|
2022-04-27 13:18:37 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sosreport";
|
|
|
|
repo = "sos";
|
|
|
|
rev = version;
|
2022-12-08 14:34:28 +01:00
|
|
|
sha256 = "sha256-xbL/4CmDnygiL/u3Jsa6fAkO4YfklDzuFMsxSGy1Ra4=";
|
2022-04-27 13:18:37 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-12-08 14:34:28 +01:00
|
|
|
magic
|
2022-04-27 13:18:37 +02:00
|
|
|
pexpect
|
2022-12-08 14:34:28 +01:00
|
|
|
pyyaml
|
|
|
|
setuptools
|
2022-04-27 13:18:37 +02: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-07-23 19:30:22 +02:00
|
|
|
maintainers = with maintainers; [ ];
|
2022-04-27 13:18:37 +02:00
|
|
|
};
|
|
|
|
}
|