git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #107906 from Mic92/wordcloud

python3.pkgs.wordcloud: 1.6.0 -> 1.8.1

commit60c6607dc87f9f1c34dc028b7d7c8bf7006067f7 authorJörg Thalheim <Mic92@users.noreply.github.com> dateFri 1 Jan 2021, 07:21 (6 years ago) parent299c95a5d84589
1 file changed+16−5
pkgs/development/python-modules/wordcloud/default.nix+16−5
pkgs/development/python-modules/wordcloud/default.nix+16−5
@@ -3,31 +3,42 @@
33, mock
44, numpy
55, pillow
6−, pytest
6+, cython
77, pytestcov
8+, pytest
9+, fetchpatch
810}:
911
1012buildPythonPackage rec {
1113 pname = "word_cloud";
12− version = "1.6.0";
14+ version = "1.8.1";
1315
1416 # tests are not included in pypi tarball
1517 src = fetchFromGitHub {
1618 owner = "amueller";
1719 repo = pname;
1820 rev = version;
19− sha256 = "1ncjr90m3w3b4zi23kw6ai11gxahdyah96x8jb2yn2x4573022x2";
21+ sha256 = "sha256-4EFQfv+Jn9EngUAyDoJP0yv9zr9Tnbrdwq1YzDacB9Q=";
2022 };
2123
24+ nativeBuildInputs = [ cython ];
2225 propagatedBuildInputs = [ matplotlib numpy pillow ];
2326
2427 # Tests require extra dependencies
2528 checkInputs = [ mock pytest pytestcov ];
26− # skip tests which make assumptions about installation
29+
2730 checkPhase = ''
28− pytest -k 'not cli_as_executable'
31+ PATH=$out/bin:$PATH pytest test
2932 '';
3033
34+ patches = [
35+ (fetchpatch {
36+ # https://github.com/amueller/word_cloud/pull/616
37+ url = "https://github.com/amueller/word_cloud/commit/858a8ac4b5b08494c1d25d9e0b35dd995151a1e5.patch";
38+ sha256 = "sha256-+aDTMPtOibVwjPrRLxel0y4JFD5ERB2bmJi4zRf/asg=";
39+ })
40+ ];
41+
3142 meta = with stdenv.lib; {
3243 description = "A little word cloud generator in Python";
3344 homepage = "https://github.com/amueller/word_cloud";