diff options
author | Florian Jacob <projects+git@florianjacob.de> | 2017-06-19 01:18:56 +0200 |
---|---|---|
committer | Florian Jacob <projects+git@florianjacob.de> | 2017-07-16 00:14:19 +0200 |
commit | 63bb133373e5d6996fdde864819efd1be7d6ef32 (patch) | |
tree | 5a071fc970207937036cfab59285ae2767b60fcc /pkgs/tools/system/journalwatch/default.nix | |
parent | dc696e2800bdcfc35a3ef8870f242e38864f61da (diff) |
journalwatch & journalwatch service: init at 1.1.0
Diffstat (limited to 'pkgs/tools/system/journalwatch/default.nix')
-rw-r--r-- | pkgs/tools/system/journalwatch/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/tools/system/journalwatch/default.nix b/pkgs/tools/system/journalwatch/default.nix new file mode 100644 index 0000000000000..a424eb6c4b2c8 --- /dev/null +++ b/pkgs/tools/system/journalwatch/default.nix @@ -0,0 +1,43 @@ +{ stdenv, buildPythonPackage, fetchurl, fetchgit, pythonOlder, systemd, pytest }: + +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; + + checkPhase = '' + pytest test_journalwatch.py + ''; + + buildInputs = [ + pytest + ]; + + propagatedBuildInputs = [ + systemd + ]; + + + meta = with stdenv.lib; { + description = "journalwatch is a tool to find error messages in the systemd journal."; + homepage = "https://github.com/The-Compiler/journalwatch"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ florianjacob ]; + }; +} |