ks: add completions for bash and zsh (#364049)
[NixPkgs.git] / pkgs / applications / logging / sosreport / default.nix
blobfaa59c21fa8755597f9b19d85d4673471151ba8b
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   gettext,
6   magic,
7   pexpect,
8   pyyaml,
9   setuptools,
12 buildPythonPackage rec {
13   pname = "sosreport";
14   version = "4.8.1";
16   src = fetchFromGitHub {
17     owner = "sosreport";
18     repo = "sos";
19     rev = "refs/tags/${version}";
20     sha256 = "sha256-tnc0mAWk3IqQVRLj5oDhJSG4o27Ogv/Ce6oGEZ6AamM=";
21   };
23   nativeBuildInputs = [
24     gettext
25   ];
27   propagatedBuildInputs = [
28     magic
29     pexpect
30     pyyaml
31     setuptools
32   ];
34   # requires avocado-framework 94.0, latest version as of writing is 96.0
35   doCheck = false;
37   preCheck = ''
38     export PYTHONPATH=$PWD/tests:$PYTHONPATH
39   '';
41   pythonImportsCheck = [ "sos" ];
43   meta = with lib; {
44     description = "Unified tool for collecting system logs and other debug information";
45     homepage = "https://github.com/sosreport/sos";
46     license = licenses.gpl2Only;
47     maintainers = [ ];
48   };