Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / tools / eliot-tree / default.nix
blob9ef8dcad374dc95fcc01a512243b34cadba3553d
1 { lib, python3Packages, fetchPypi }:
3 python3Packages.buildPythonApplication rec {
4   pname = "eliot-tree";
5   version = "19.0.1";
7   src = fetchPypi {
8     inherit pname version;
9     sha256 = "18gvijsm0vh3x83mv8dd80c3mpm80r7i111qsg4y7rj4i590phma";
10   };
12   nativeCheckInputs = with python3Packages; [
13     testtools
14     pytest
15    ];
17   propagatedBuildInputs = with python3Packages; [
18     colored
19     eliot
20     iso8601
21     jmespath
22     setuptools
23     toolz
24   ];
26   # Tests run eliot-tree in out/bin.
27   checkPhase = ''
28     export PATH=$out/bin:$PATH
29     pytest
30   '';
32   meta = with lib; {
33     homepage = "https://github.com/jonathanj/eliottree";
34     description = "Render Eliot logs as an ASCII tree";
35     license = licenses.mit;
36     maintainers = [ maintainers.dpausp ];
37   };