git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #89271 from dpausp/eliot-tree

eliot-tree: init at 19.0.1

commit3d20d83dbfddb57ad895e9278c758d525cefcc42 authorChristian Kauhaus <kc@flyingcircus.io> dateWed 5 Aug 2020, 15:09 (6 years ago) parent72c9b5637ee089
5 files changed+108
maintainers/maintainer-list.nix+10 pkgs/development/python-modules/eliot/default.nix+56 pkgs/development/tools/eliot-tree/default.nix+38 pkgs/top-level/all-packages.nix+2 pkgs/top-level/python-packages.nix+2
maintainers/maintainer-list.nix+10
@@ -2180,6 +2180,16 @@
21802180 githubId = 974130;
21812181 name = "David Pätzel";
21822182 };
2183+ dpausp = {
2184+ email = "dpausp@posteo.de";
2185+ github = "dpausp";
2186+ githubId = 1965950;
2187+ name = "Tobias Stenzel";
2188+ keys = [{
2189+ longkeyid = "rsa2048/0x78C7DD40DF23FB16";
2190+ fingerprint = "4749 0887 CF3B 85A1 6355 C671 78C7 DD40 DF23 FB16";
2191+ }];
2192+ };
21832193 dpflug = {
21842194 email = "david@pflug.email";
21852195 github = "dpflug";
pkgs/development/python-modules/eliot/default.nixnew file+56
@@ -0,0 +1,56 @@
1+{ stdenv
2+, buildPythonPackage
3+, fetchPypi
4+, pythonOlder
5+, aiocontextvars
6+, boltons
7+, hypothesis
8+, pyrsistent
9+, pytest
10+, setuptools
11+, six
12+, testtools
13+, zope_interface
14+}:
15+
16+buildPythonPackage rec {
17+ pname = "eliot";
18+ version = "1.12.0";
19+ disabled = pythonOlder "3.6";
20+
21+ src = fetchPypi {
22+ inherit pname version;
23+ sha256 = "0wabv7hk63l12881f4zw02mmj06583qsx2im0yywdjlj8f56vqdn";
24+ };
25+
26+ checkInputs = [
27+ hypothesis
28+ testtools
29+ pytest
30+ ];
31+
32+ propagatedBuildInputs = [
33+ aiocontextvars
34+ boltons
35+ pyrsistent
36+ setuptools
37+ six
38+ zope_interface
39+ ];
40+
41+ pythonImportsCheck = [ "eliot" ];
42+
43+ # Tests run eliot-prettyprint in out/bin.
44+ # test_parse_stream is broken, skip it.
45+ checkPhase = ''
46+ export PATH=$out/bin:$PATH
47+ pytest -k 'not test_parse_stream'
48+ '';
49+
50+ meta = with stdenv.lib; {
51+ homepage = "https://eliot.readthedocs.io";
52+ description = "Logging library that tells you why it happened";
53+ license = licenses.asl20;
54+ maintainers = [ maintainers.dpausp ];
55+ };
56+}
pkgs/development/tools/eliot-tree/default.nixnew file+38
@@ -0,0 +1,38 @@
1+{ stdenv, python3Packages }:
2+
3+python3Packages.buildPythonApplication rec {
4+ pname = "eliot-tree";
5+ version = "19.0.1";
6+
7+ src = python3Packages.fetchPypi {
8+ inherit pname version;
9+ sha256 = "18gvijsm0vh3x83mv8dd80c3mpm80r7i111qsg4y7rj4i590phma";
10+ };
11+
12+ checkInputs = with python3Packages; [
13+ testtools
14+ pytest
15+ ];
16+
17+ propagatedBuildInputs = with python3Packages; [
18+ colored
19+ eliot
20+ iso8601
21+ jmespath
22+ setuptools
23+ toolz
24+ ];
25+
26+ # Tests run eliot-tree in out/bin.
27+ checkPhase = ''
28+ export PATH=$out/bin:$PATH
29+ pytest
30+ '';
31+
32+ meta = with stdenv.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+ };
38+}
pkgs/top-level/all-packages.nix+2
@@ -10623,6 +10623,8 @@ in
1062310623
1062410624 elfutils = callPackage ../development/tools/misc/elfutils { };
1062510625
10626+ eliot-tree = callPackage ../development/tools/eliot-tree { };
10627+
1062610628 emma = callPackage ../development/tools/analysis/emma { };
1062710629
1062810630 epm = callPackage ../development/tools/misc/epm { };
pkgs/top-level/python-packages.nix+2
@@ -730,6 +730,8 @@ in {
730730
731731 diff-match-patch = callPackage ../development/python-modules/diff-match-patch { };
732732
733+ eliot = callPackage ../development/python-modules/eliot {};
734+
733735 entrance = callPackage ../development/python-modules/entrance { routerFeatures = false; };
734736
735737 entrance-with-router-features = callPackage ../development/python-modules/entrance { routerFeatures = true; };