1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, doit
6, glibcLocales
7, pytest
8, pytestcov
9, mock
10, pygments
11, pillow
12, dateutil
13, docutils
14, Mako
15, unidecode
16, lxml
17, Yapsy
18, PyRSS2Gen
19, Logbook
20, blinker
21, setuptools
22, natsort
23, requests
24, piexif
25, markdown
26, phpserialize
27, jinja2
28}:
29
30buildPythonPackage rec {
31 pname = "Nikola";
32 version = "7.8.11";
33
34 # Nix contains only Python 3 supported version of doit, which is a dependency
35 # of Nikola. Python 2 support would require older doit 0.29.0 (which on the
36 # other hand doesn't support Python 3.3). So, just disable Python 2.
37 disabled = !isPy3k;
38
39 checkInputs = [ pytest pytestcov mock glibcLocales ];
40
41 propagatedBuildInputs = [
42 pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
43 Logbook blinker setuptools natsort requests piexif markdown phpserialize
44 jinja2 doit
45 ];
46
47 src = fetchPypi {
48 inherit pname version;
49 sha256 = "10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f";
50 };
51
52 meta = {
53 homepage = https://getnikola.com/;
54 description = "A modular, fast, simple, static website and blog generator";
55 license = lib.licenses.mit;
56 maintainers = with lib.maintainers; [ jluttine ];
57 };
58}