blob: 9886f2db1cb4484208062cf3cf97182a8b4d7068 (
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
62
63
64
65
66
67
|
{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, fetchpatch
, matplotlib
, mock
, numpy
, pillow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "wordcloud";
version = "unstable-2023-01-04";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "amueller";
repo = "word_cloud";
rev = "dbf7ab7753a36e1c12c0e1b36aeeece5023f39f9";
hash = "sha256-ogSkVcPUth7bh7mxwdDmF/Fc2ySDxbLA8ArmBNnPvw8=";
};
nativeBuildInputs = [
cython
];
propagatedBuildInputs = [
matplotlib
numpy
pillow
];
nativeCheckInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov --cov-report xml --tb=short" ""
'';
preCheck = ''
cd test
'';
pythonImportsCheck = [
"wordcloud"
];
disabledTests = [
# Don't tests CLI
"test_cli_as_executable"
];
meta = with lib; {
description = "Word cloud generator in Python";
homepage = "https://github.com/amueller/word_cloud";
license = licenses.mit;
maintainers = with maintainers; [ jm2dev ];
};
}
|