2017-05-17 07:19:16 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchPypi
|
|
|
|
, doit
|
|
|
|
, glibcLocales
|
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, pytest-mock
|
|
|
|
, pygments
|
|
|
|
, pillow
|
|
|
|
, dateutil
|
|
|
|
, docutils
|
|
|
|
, Mako
|
|
|
|
, unidecode
|
|
|
|
, lxml
|
|
|
|
, Yapsy
|
|
|
|
, PyRSS2Gen
|
|
|
|
, Logbook
|
|
|
|
, blinker
|
|
|
|
, setuptools
|
|
|
|
, natsort
|
|
|
|
, requests
|
|
|
|
, piexif
|
|
|
|
, markdown
|
|
|
|
, phpserialize
|
|
|
|
, jinja2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "Nikola";
|
2017-06-19 12:43:19 +01:00
|
|
|
version = "7.8.8";
|
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;
|
|
|
|
|
|
|
|
buildInputs = [ pytest pytestcov pytest-mock glibcLocales ];
|
|
|
|
|
|
|
|
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-06-19 12:43:19 +01:00
|
|
|
sha256 = "a45272e96ea8311e79ab6ea5523d792207d549cba418d623f03bf80d5e5e3e5a";
|
2017-05-17 07:19:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://getnikola.com/";
|
|
|
|
description = "A modular, fast, simple, static website and blog generator";
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ jluttine ];
|
|
|
|
};
|
|
|
|
}
|