mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
sosreport: init at 4.3
This commit is contained in:
parent
9d15d4620b
commit
73468fbcf7
51
pkgs/applications/logging/sosreport/default.nix
Normal file
51
pkgs/applications/logging/sosreport/default.nix
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, gettext
|
||||||
|
, pexpect
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "sosreport";
|
||||||
|
version = "4.3";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "sosreport";
|
||||||
|
repo = "sos";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-fLEYRRQap7xqSyUU9MAV8cxxYKydHjn8J147VTXSf78=";
|
||||||
|
};
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
(fetchpatch {
|
||||||
|
# fix sos --help
|
||||||
|
url = "https://github.com/sosreport/sos/commit/ac4eb48fa35c13b99ada41540831412480babf8d.patch";
|
||||||
|
sha256 = "sha256-6ZRoDDZN2KkHTXOKuHTAquB/HTIUppodmx83WxxYFP0=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
gettext
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pexpect
|
||||||
|
];
|
||||||
|
|
||||||
|
# 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 = with maintainers; [ SuperSandro2000 ];
|
||||||
|
};
|
||||||
|
}
|
@ -26961,6 +26961,8 @@ with pkgs;
|
|||||||
|
|
||||||
sonixd = callPackage ../applications/audio/sonixd { };
|
sonixd = callPackage ../applications/audio/sonixd { };
|
||||||
|
|
||||||
|
sosreport = python3Packages.callPackage ../applications/logging/sosreport { };
|
||||||
|
|
||||||
spectmorph = callPackage ../applications/audio/spectmorph { };
|
spectmorph = callPackage ../applications/audio/spectmorph { };
|
||||||
|
|
||||||
smallwm = callPackage ../applications/window-managers/smallwm { };
|
smallwm = callPackage ../applications/window-managers/smallwm { };
|
||||||
|
Loading…
Reference in New Issue
Block a user