2021-01-25 09:26:54 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, pythonOlder, systemd, pytest }:
|
2017-06-19 01:18:56 +02:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "journalwatch";
|
|
|
|
version = "1.1.0";
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
2019-04-13 20:55:49 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "The-Compiler";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-09-16 19:33:20 +02:00
|
|
|
hash = "sha512-60+ewzOIox2wsQFXMAgD7XN+zvPA1ScPz6V4MB5taVDhqCxUTMVOxodf+4AMhxtNQloXZ3ye7/0bjh1NPDjxQg==";
|
2017-06-19 01:18:56 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# can be removed post 1.1.0
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace test_journalwatch.py \
|
|
|
|
--replace "U Thu Jan 1 00:00:00 1970 prio foo [1337]" "U Thu Jan 1 00:00:00 1970 pprio foo [1337]"
|
|
|
|
'';
|
|
|
|
|
|
|
|
|
|
|
|
doCheck = true;
|
2023-01-21 13:00:00 +01:00
|
|
|
nativeCheckInputs = [ pytest ];
|
2017-06-19 01:18:56 +02:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
2019-04-13 20:33:39 +02:00
|
|
|
'';
|
2017-06-19 01:18:56 +02:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2017-06-19 01:18:56 +02:00
|
|
|
description = "journalwatch is a tool to find error messages in the systemd journal.";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/The-Compiler/journalwatch";
|
2017-06-19 01:18:56 +02:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ florianjacob ];
|
|
|
|
};
|
|
|
|
}
|