blob: 16277650665e0dafdd32a15ce3b8337f6fa4187a (
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
59
60
61
62
63
64
65
66
|
{
lib,
buildPythonPackage,
cython,
fetchPypi,
matplotlib,
numpy,
pillow,
pytestCheckHook,
pytest-cov-stub,
setuptools,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "wordcloud";
version = "1.9.5";
pyproject = true;
build-system = [
setuptools
setuptools-scm
];
src = fetchPypi {
inherit pname version;
hash = "sha256-asfBN48ohtfoSWAKMG/r1B0NRrFc6HbWZaPlSfVAOws=";
};
nativeBuildInputs = [ cython ];
dependencies = [
matplotlib
numpy
pillow
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
preCheck = ''
cd test
'';
pythonImportsCheck = [ "wordcloud" ];
disabledTests = [
# Don't tests CLI
"test_cli_as_executable"
# OSError: invalid ppem value
"test_recolor_too_small"
"test_coloring_black_works"
];
meta = {
description = "Word cloud generator in Python";
mainProgram = "wordcloud_cli";
homepage = "https://github.com/amueller/word_cloud";
changelog = "https://github.com/amueller/word_cloud/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ jm2dev ];
};
}
|