depot/third_party/nixpkgs/pkgs/development/python-modules/wordcloud/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

66 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, matplotlib
, mock
, numpy
, pillow
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "wordcloud";
version = "1.9.1.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "amueller";
repo = "word_cloud";
rev = "refs/tags/${version}";
hash = "sha256-Tcle9otT1eBN/RzajwKZDUq8xX0Lhi2t74OvhUrvHZE=";
};
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 ];
};
}