1{ lib 2, buildPythonPackage 3, cython 4, fetchFromGitHub 5, matplotlib 6, mock 7, numpy 8, pillow 9, pytestCheckHook 10, pythonOlder 11}: 12 13buildPythonPackage rec { 14 pname = "wordcloud"; 15 version = "1.9.1.1"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "amueller"; 22 repo = "word_cloud"; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-Tcle9otT1eBN/RzajwKZDUq8xX0Lhi2t74OvhUrvHZE="; 25 }; 26 27 nativeBuildInputs = [ 28 cython 29 ]; 30 31 propagatedBuildInputs = [ 32 matplotlib 33 numpy 34 pillow 35 ]; 36 37 nativeCheckInputs = [ 38 mock 39 pytestCheckHook 40 ]; 41 42 postPatch = '' 43 substituteInPlace setup.cfg \ 44 --replace " --cov --cov-report xml --tb=short" "" 45 ''; 46 47 preCheck = '' 48 cd test 49 ''; 50 51 pythonImportsCheck = [ 52 "wordcloud" 53 ]; 54 55 disabledTests = [ 56 # Don't tests CLI 57 "test_cli_as_executable" 58 ]; 59 60 meta = with lib; { 61 description = "Word cloud generator in Python"; 62 homepage = "https://github.com/amueller/word_cloud"; 63 license = licenses.mit; 64 maintainers = with maintainers; [ jm2dev ]; 65 }; 66}