Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 aiohttp,
4 babel,
5 blinker,
6 buildPythonPackage,
7 docutils,
8 doit,
9 feedparser,
10 fetchPypi,
11 freezegun,
12 ghp-import,
13 hsluv,
14 html5lib,
15 ipykernel,
16 jinja2,
17 lxml,
18 mako,
19 markdown,
20 micawber,
21 mock,
22 natsort,
23 notebook,
24 phpserialize,
25 piexif,
26 pillow,
27 pygal,
28 pygments,
29 pyphen,
30 pyrss2gen,
31 pytestCheckHook,
32 pytest-cov-stub,
33 python-dateutil,
34 pythonOlder,
35 requests,
36 ruamel-yaml,
37 setuptools,
38 toml,
39 typogrify,
40 unidecode,
41 watchdog,
42 yapsy,
43}:
44
45buildPythonPackage rec {
46 pname = "nikola";
47 version = "8.3.3";
48 pyproject = true;
49
50 disabled = pythonOlder "3.8";
51
52 src = fetchPypi {
53 pname = "Nikola";
54 inherit version;
55 hash = "sha256-Y219b/wqsk9MJknoaV+LtWBOMJFT6ktgt4b6yuA6scc=";
56 };
57
58 nativeBuildInputs = [ setuptools ];
59
60 propagatedBuildInputs = [
61 aiohttp
62 babel
63 blinker
64 docutils
65 doit
66 feedparser
67 ghp-import
68 hsluv
69 html5lib
70 ipykernel
71 jinja2
72 lxml
73 mako
74 markdown
75 micawber
76 natsort
77 notebook
78 phpserialize
79 piexif
80 pillow
81 pygal
82 pygments
83 pyphen
84 pyrss2gen
85 python-dateutil
86 requests
87 ruamel-yaml
88 toml
89 typogrify
90 unidecode
91 watchdog
92 yapsy
93 ];
94
95 nativeCheckInputs = [
96 freezegun
97 mock
98 pytestCheckHook
99 pytest-cov-stub
100 ];
101
102 disabledTests = [
103 # AssertionError
104 "test_compiling_markdown"
105 # Date formatting slightly differs from expectation
106 "test_format_date_long"
107 "test_format_date_timezone"
108 "test_format_date_locale_variants"
109 "test_format_date_locale_variants"
110 ];
111
112 pythonImportsCheck = [ "nikola" ];
113
114 meta = with lib; {
115 description = "Static website and blog generator";
116 mainProgram = "nikola";
117 homepage = "https://getnikola.com/";
118 changelog = "https://github.com/getnikola/nikola/blob/v${version}/CHANGES.txt";
119 license = licenses.mit;
120 maintainers = with maintainers; [ jluttine ];
121 };
122}