blob: 04eac7726f719a448d462dae0a18bf49c6bb7dae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ lib, python3Packages, fetchPypi }:
python3Packages.buildPythonApplication rec {
pname = "eliot-tree";
version = "21.0.0";
src = fetchPypi {
inherit pname version;
hash = "sha256-hTl+r+QJPPQ7ss73lty3Wm7DLy2SKGmmgIuJx38ilO8=";
};
nativeCheckInputs = with python3Packages; [
testtools
pytest
];
propagatedBuildInputs = with python3Packages; [
colored
eliot
iso8601
jmespath
setuptools
toolz
];
# Tests run eliot-tree in out/bin.
checkPhase = ''
export PATH=$out/bin:$PATH
pytest
'';
meta = with lib; {
homepage = "https://github.com/jonathanj/eliottree";
description = "Render Eliot logs as an ASCII tree";
mainProgram = "eliot-tree";
license = licenses.mit;
maintainers = [ maintainers.dpausp ];
};
}
|