blob: db9e56bb8b6e3594f91e105064e538a744970194 (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
{ lib
, buildPythonPackage
, fetchPypi
# build-system
, setuptools
# dependencies
, asttokens
, colorama
, executing
, pygments
# tests
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "icecream";
version = "2.1.3";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-CqSnwzdOw2FTodCPgeMIDoPYrB7v2X0vT+lUTo+bSd4=";
};
postPatch = ''
substituteInPlace tests/test_icecream.py \
--replace assertRegexpMatches assertRegex
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
asttokens
colorama
executing
pygments
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# icecream.icecream.NoSourceAvailableError
"testSingledispatchArgumentToString"
# AssertionError: assert [[('REPL (e.g...ion?', None)]] == [[('a', '1')], [('c', '3')]]
"testEnableDisable"
];
meta = with lib; {
description = "A little library for sweet and creamy print debugging";
homepage = "https://github.com/gruns/icecream";
license = licenses.mit;
maintainers = with maintainers; [ renatoGarcia ];
};
}
|