2017-05-17 07:19:16 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchPypi
|
|
|
|
, doit
|
|
|
|
, glibcLocales
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
2018-02-12 11:46:57 +00:00
|
|
|
, mock
|
2017-05-17 07:19:16 +01:00
|
|
|
, pygments
|
|
|
|
, pillow
|
|
|
|
, dateutil
|
|
|
|
, docutils
|
|
|
|
, Mako
|
|
|
|
, unidecode
|
|
|
|
, lxml
|
|
|
|
, Yapsy
|
|
|
|
, PyRSS2Gen
|
|
|
|
, Logbook
|
|
|
|
, blinker
|
|
|
|
, setuptools
|
|
|
|
, natsort
|
|
|
|
, requests
|
|
|
|
, piexif
|
|
|
|
, markdown
|
|
|
|
, phpserialize
|
|
|
|
, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Nikola";
|
2017-12-30 11:24:53 +00:00
|
|
|
version = "7.8.11";
|
2017-05-17 07:19:16 +01:00
|
|
|
|
|
|
|
# Nix contains only Python 3 supported version of doit, which is a dependency
|
|
|
|
# of Nikola. Python 2 support would require older doit 0.29.0 (which on the
|
|
|
|
# other hand doesn't support Python 3.3). So, just disable Python 2.
|
|
|
|
disabled = !isPy3k;
|
|
|
|
|
2018-02-12 12:21:48 +00:00
|
|
|
checkInputs = [ pytest pytestcov mock glibcLocales ];
|
2017-05-17 07:19:16 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pygments pillow dateutil docutils Mako unidecode lxml Yapsy PyRSS2Gen
|
|
|
|
Logbook blinker setuptools natsort requests piexif markdown phpserialize
|
|
|
|
jinja2 doit
|
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2017-12-30 11:24:53 +00:00
|
|
|
sha256 = "10d95b3af84e61496ef729665eafa2235fd0fd4cc6c57644dd0f2c19a968dd0f";
|
2017-05-17 07:19:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = https://getnikola.com/;
|
2017-05-17 07:19:16 +01:00
|
|
|
description = "A modular, fast, simple, static website and blog generator";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|