1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, aiocontextvars
6, boltons
7, hypothesis
8, pyrsistent
9, pytestCheckHook
10, setuptools
11, six
12, testtools
13, zope_interface
14}:
15
16buildPythonPackage rec {
17 pname = "eliot";
18 version = "1.14.0";
19 format = "setuptools";
20
21 disabled = pythonOlder "3.6";
22
23 src = fetchPypi {
24 inherit pname version;
25 hash = "sha256-wvCZo+jV7PwidFdm58xmSkjbZLa4nZht/ycEkdhoMUk=";
26 };
27
28 propagatedBuildInputs = [
29 aiocontextvars
30 boltons
31 pyrsistent
32 setuptools
33 six
34 zope_interface
35 ];
36
37 nativeCheckInputs = [
38 hypothesis
39 pytestCheckHook
40 testtools
41 ];
42
43 pythonImportsCheck = [
44 "eliot"
45 ];
46
47 # Tests run eliot-prettyprint in out/bin.
48 preCheck = ''
49 export PATH=$out/bin:$PATH
50 '';
51
52 disabledTests = [
53 "test_parse_stream"
54 # AttributeError: module 'inspect' has no attribute 'getargspec'
55 "test_default"
56 ];
57
58 meta = with lib; {
59 homepage = "https://eliot.readthedocs.io";
60 description = "Logging library that tells you why it happened";
61 license = licenses.asl20;
62 maintainers = with maintainers; [ dpausp ];
63 };
64}