2017-05-17 07:19:16 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, isPy3k
|
|
|
|
, fetchPypi
|
2018-12-03 09:56:42 +00:00
|
|
|
, fetchpatch
|
2017-05-17 07:19:16 +01:00
|
|
|
, 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
|
2018-09-12 09:12:05 +01:00
|
|
|
, Babel
|
|
|
|
, freezegun
|
|
|
|
, pyyaml
|
|
|
|
, toml
|
|
|
|
, notebook
|
2017-05-17 07:19:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Nikola";
|
2018-09-12 09:12:05 +01:00
|
|
|
version = "8.0.1";
|
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-09-12 09:12:05 +01:00
|
|
|
checkInputs = [ pytest pytestcov mock glibcLocales freezegun ];
|
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
|
2018-09-12 09:12:05 +01:00
|
|
|
jinja2 doit Babel pyyaml toml notebook
|
2017-05-17 07:19:16 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-09-12 09:12:05 +01:00
|
|
|
sha256 = "18bq68f9v7xk9ahjl6x4k77yysq5g6g07ng2ndbg35kcsdnw4nk6";
|
2017-05-17 07:19:16 +01:00
|
|
|
};
|
|
|
|
|
2018-12-03 09:56:42 +00:00
|
|
|
patches = fetchpatch {
|
|
|
|
url = https://github.com/getnikola/nikola/commit/d40be74a86af71b5206dc22beb82fcd0d08ea2f6.patch;
|
|
|
|
sha256 = "0disr8bxbfjymwlbm82mxkal3ynnv8zfiqsgfh9fkqhb35bn4l8j";
|
|
|
|
};
|
|
|
|
|
2018-09-12 09:12:05 +01:00
|
|
|
checkPhase = ''
|
|
|
|
LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" py.test .
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|