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
891 B
Nix
Raw Normal View History

2022-04-27 12:18:37 +01:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, gettext
2022-12-08 13:34:28 +00:00
, magic
2022-04-27 12:18:37 +01:00
, pexpect
2022-12-08 13:34:28 +00:00
, pyyaml
, setuptools
2022-04-27 12:18:37 +01:00
}:
buildPythonPackage rec {
pname = "sosreport";
2024-11-13 22:11:17 +00:00
version = "4.8.1";
2022-04-27 12:18:37 +01:00
src = fetchFromGitHub {
owner = "sosreport";
repo = "sos";
2024-01-12 12:58:38 +00:00
rev = "refs/tags/${version}";
2024-11-13 22:11:17 +00:00
sha256 = "sha256-tnc0mAWk3IqQVRLj5oDhJSG4o27Ogv/Ce6oGEZ6AamM=";
2022-04-27 12:18:37 +01:00
};
nativeBuildInputs = [
gettext
];
propagatedBuildInputs = [
2022-12-08 13:34:28 +00:00
magic
2022-04-27 12:18:37 +01:00
pexpect
2022-12-08 13:34:28 +00:00
pyyaml
setuptools
2022-04-27 12:18:37 +01: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;
maintainers = [ ];
2022-04-27 12:18:37 +01:00
};
}