1{ lib
2, buildPythonPackage
3, isPy3k
4, fetchPypi
5, doit
6, glibcLocales
7, pytest
8, pytestcov
9, pytest-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 name = "${pname}-${version}";
32 pname = "Nikola";
33 version = "7.8.9";
34
35 # Nix contains only Python 3 supported version of doit, which is a dependency
36 # of Nikola. Python 2 support would require older doit 0.29.0 (which on the
37 # other hand doesn't support Python 3.3). So, just disable Python 2.
38 disabled = !isPy3k;
39
40 buildInputs = [ pytest pytestcov pytest-mock glibcLocales ];
41
42 propagatedBuildInputs = [
43 pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
44 Logbook blinker setuptools natsort requests piexif markdown phpserialize
45 jinja2 doit
46 ];
47
48 src = fetchPypi {
49 inherit pname version;
50 sha256 = "c85bf293a245a34057fb55236fc2f2c5d28e9ef1c375889f443bca1d86924df4";
51 };
52
53 meta = {
54 homepage = https://getnikola.com/;
55 description = "A modular, fast, simple, static website and blog generator";
56 license = lib.licenses.mit;
57 maintainers = with lib.maintainers; [ jluttine ];
58 };
59}