blob: dd3ed339f854c7a1b73517d46344b02fd31e5bed (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
# build-system
setuptools,
# dependencies
asttokens,
colorama,
executing,
pygments,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "icecream";
version = "2.1.5";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-FNIeM4MyammowaO88R+DKDRZ8NJp7OWvg/ziwNZj7+w=";
};
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 = {
description = "Little library for sweet and creamy print debugging";
homepage = "https://github.com/gruns/icecream";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ renatoGarcia ];
};
}
|