tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
0
fork
atom
lol
0
fork
atom
overview
issues
pulls
pipelines
python311Packages.eliot: switch to pytestCheckHook
Fabian Affolter
3 years ago
d4f730ee
fdfb7f36
+21
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
python-modules
eliot
default.nix
+21
-13
pkgs/development/python-modules/eliot/default.nix
reviewed
···
6
6
, boltons
7
7
, hypothesis
8
8
, pyrsistent
9
9
-
, pytest
9
9
+
, pytestCheckHook
10
10
, setuptools
11
11
, six
12
12
, testtools
···
16
16
buildPythonPackage rec {
17
17
pname = "eliot";
18
18
version = "1.14.0";
19
19
+
format = "setuptools";
20
20
+
19
21
disabled = pythonOlder "3.6";
20
22
21
23
src = fetchPypi {
22
24
inherit pname version;
23
23
-
sha256 = "c2f099a3e8d5ecfc22745766e7cc664a48db64b6b89d986dff270491d8683149";
25
25
+
hash = "sha256-wvCZo+jV7PwidFdm58xmSkjbZLa4nZht/ycEkdhoMUk=";
24
26
};
25
27
26
26
-
nativeCheckInputs = [
27
27
-
hypothesis
28
28
-
testtools
29
29
-
pytest
30
30
-
];
31
31
-
32
28
propagatedBuildInputs = [
33
29
aiocontextvars
34
30
boltons
···
38
34
zope_interface
39
35
];
40
36
41
41
-
pythonImportsCheck = [ "eliot" ];
37
37
+
nativeCheckInputs = [
38
38
+
hypothesis
39
39
+
pytestCheckHook
40
40
+
testtools
41
41
+
];
42
42
+
43
43
+
pythonImportsCheck = [
44
44
+
"eliot"
45
45
+
];
42
46
43
47
# Tests run eliot-prettyprint in out/bin.
44
44
-
# test_parse_stream is broken, skip it.
45
45
-
checkPhase = ''
48
48
+
preCheck = ''
46
49
export PATH=$out/bin:$PATH
47
47
-
pytest -k 'not test_parse_stream'
48
50
'';
49
51
52
52
+
disabledTests = [
53
53
+
"test_parse_stream"
54
54
+
# AttributeError: module 'inspect' has no attribute 'getargspec'
55
55
+
"test_default"
56
56
+
];
57
57
+
50
58
meta = with lib; {
51
59
homepage = "https://eliot.readthedocs.io";
52
60
description = "Logging library that tells you why it happened";
53
61
license = licenses.asl20;
54
54
-
maintainers = [ maintainers.dpausp ];
62
62
+
maintainers = with maintainers; [ dpausp ];
55
63
};
56
64
}