2018-07-21 01:44:44 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, pythonOlder, systemd, pytest }:
|
2017-06-19 00:18:56 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "journalwatch";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
version = "1.1.0";
|
|
|
|
disabled = pythonOlder "3.3";
|
|
|
|
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/The-Compiler/${pname}/archive/v${version}.tar.gz";
|
|
|
|
sha512 = "3hvbgx95hjfivz9iv0hbhj720wvm32z86vj4a60lji2zdfpbqgr2b428lvg2cpvf71l2xn6ca5v0hzyz57qylgwqzgfrx7hqhl5g38s";
|
|
|
|
};
|
|
|
|
|
|
|
|
# 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;
|
2019-04-13 19:33:39 +01:00
|
|
|
checkInputs = [ pytest ];
|
2017-06-19 00:18:56 +01:00
|
|
|
checkPhase = ''
|
|
|
|
pytest
|
2019-04-13 19:33:39 +01:00
|
|
|
'';
|
2017-06-19 00:18:56 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
systemd
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "journalwatch is a tool to find error messages in the systemd journal.";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://github.com/The-Compiler/journalwatch;
|
2017-06-19 00:18:56 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ florianjacob ];
|
|
|
|
};
|
|
|
|
}
|