Merge pull request #312950 from Moraxyc/fix-wordcloud

python3Packages.wordcloud: fix “stopwords” error

authored by Weijia Wang and committed by GitHub 1178d8a1 af0eb02b

+26 -27
+26 -27
pkgs/development/python-modules/wordcloud/default.nix
··· 1 - { lib 2 - , buildPythonPackage 3 - , cython 4 - , fetchFromGitHub 5 - , matplotlib 6 - , mock 7 - , numpy 8 - , pillow 9 - , pytestCheckHook 10 - , pythonOlder 1 + { 2 + lib, 3 + buildPythonPackage, 4 + cython, 5 + fetchPypi, 6 + matplotlib, 7 + numpy, 8 + pillow, 9 + pytestCheckHook, 10 + pythonOlder, 11 + setuptools, 12 + setuptools-scm, 11 13 }: 12 14 13 15 buildPythonPackage rec { 14 16 pname = "wordcloud"; 15 17 version = "1.9.3"; 16 - format = "setuptools"; 18 + 19 + pyproject = true; 20 + 21 + build-system = [ 22 + setuptools 23 + setuptools-scm 24 + ]; 17 25 18 26 disabled = pythonOlder "3.7"; 19 27 20 - src = fetchFromGitHub { 21 - owner = "amueller"; 22 - repo = "word_cloud"; 23 - rev = "refs/tags/${version}"; 24 - hash = "sha256-UbryGiu1AW6Razbf4BJIKGKKhG6JOeZUGb1k0w8f8XA="; 28 + src = fetchPypi { 29 + inherit pname version; 30 + hash = "sha256-qapzjWPtZ0pA8Mwxrbg/TKX8GV8Dpq/24BDR9YB9HFg="; 25 31 }; 26 32 27 33 postPatch = '' ··· 29 35 --replace " --cov --cov-report xml --tb=short" "" 30 36 ''; 31 37 32 - nativeBuildInputs = [ 33 - cython 34 - ]; 38 + nativeBuildInputs = [ cython ]; 35 39 36 - propagatedBuildInputs = [ 40 + dependencies = [ 37 41 matplotlib 38 42 numpy 39 43 pillow 40 44 ]; 41 45 42 - nativeCheckInputs = [ 43 - mock 44 - pytestCheckHook 45 - ]; 46 + nativeCheckInputs = [ pytestCheckHook ]; 46 47 47 48 preCheck = '' 48 49 cd test 49 50 ''; 50 51 51 - pythonImportsCheck = [ 52 - "wordcloud" 53 - ]; 52 + pythonImportsCheck = [ "wordcloud" ]; 54 53 55 54 disabledTests = [ 56 55 # Don't tests CLI