Merge pull request #312950 from Moraxyc/fix-wordcloud
python3Packages.wordcloud: fix “stopwords” error
This commit is contained in:
commit
1178d8a17f
|
@ -1,27 +1,33 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, cython
|
||||
, fetchFromGitHub
|
||||
, matplotlib
|
||||
, mock
|
||||
, numpy
|
||||
, pillow
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
cython,
|
||||
fetchPypi,
|
||||
matplotlib,
|
||||
numpy,
|
||||
pillow,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "wordcloud";
|
||||
version = "1.9.3";
|
||||
format = "setuptools";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "amueller";
|
||||
repo = "word_cloud";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-UbryGiu1AW6Razbf4BJIKGKKhG6JOeZUGb1k0w8f8XA=";
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-qapzjWPtZ0pA8Mwxrbg/TKX8GV8Dpq/24BDR9YB9HFg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
|
@ -29,28 +35,21 @@ buildPythonPackage rec {
|
|||
--replace " --cov --cov-report xml --tb=short" ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
];
|
||||
nativeBuildInputs = [ cython ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
matplotlib
|
||||
numpy
|
||||
pillow
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
mock
|
||||
pytestCheckHook
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
preCheck = ''
|
||||
cd test
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [
|
||||
"wordcloud"
|
||||
];
|
||||
pythonImportsCheck = [ "wordcloud" ];
|
||||
|
||||
disabledTests = [
|
||||
# Don't tests CLI
|
||||
|
|
Loading…
Reference in New Issue
Block a user