1{ lib
2, aiohttp
3, babel
4, blinker
5, buildPythonPackage
6, python-dateutil
7, docutils
8, doit
9, fetchPypi
10, freezegun
11, ghp-import
12, hsluv
13, html5lib
14, ipykernel
15, jinja2
16, lxml
17, Mako
18, markdown
19, micawber
20, mock
21, natsort
22, notebook
23, phpserialize
24, piexif
25, pillow
26, pygal
27, pygments
28, pyphen
29, PyRSS2Gen
30, pytestCheckHook
31, pythonOlder
32, requests
33, ruamel-yaml
34, stdenv
35, toml
36, typogrify
37, unidecode
38, watchdog
39, Yapsy
40}:
41
42buildPythonPackage rec {
43 pname = "Nikola";
44 version = "8.2.3";
45 disabled = pythonOlder "3.7";
46
47 src = fetchPypi {
48 inherit pname version;
49 sha256 = "sha256-c8eadkmYWS88nGwi6QwPqHg7FBXlkdazKSrbWDMw/UA=";
50 };
51
52 propagatedBuildInputs = [
53 aiohttp
54 babel
55 blinker
56 python-dateutil
57 docutils
58 doit
59 ghp-import
60 hsluv
61 html5lib
62 ipykernel
63 jinja2
64 lxml
65 Mako
66 markdown
67 micawber
68 natsort
69 notebook
70 phpserialize
71 piexif
72 pillow
73 pygal
74 pygments
75 pyphen
76 PyRSS2Gen
77 requests
78 ruamel-yaml
79 toml
80 typogrify
81 unidecode
82 watchdog
83 Yapsy
84 ];
85
86 checkInputs = [
87 freezegun
88 mock
89 pytestCheckHook
90 ];
91
92 postPatch = ''
93 substituteInPlace setup.cfg \
94 --replace "--cov nikola --cov-report term-missing" ""
95 '';
96
97 disabledTests = [
98 # AssertionError
99 "test_compiling_markdown"
100 ];
101
102 pythonImportsCheck = [ "nikola" ];
103
104 meta = with lib; {
105 description = "Static website and blog generator";
106 homepage = "https://getnikola.com/";
107 license = licenses.mit;
108 maintainers = with maintainers; [ jluttine ];
109 # All tests fail
110 broken = stdenv.isDarwin;
111 };
112}