nixpkgs/pkgs/applications/logging/sosreport/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
892 B
Nix
Raw Normal View History

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