2017-05-17 07:19:16 +01:00
|
|
|
{ lib
|
2021-05-16 15:02:02 +01:00
|
|
|
, aiohttp
|
|
|
|
, Babel
|
|
|
|
, blinker
|
2017-05-17 07:19:16 +01:00
|
|
|
, buildPythonPackage
|
2021-07-03 12:37:24 +01:00
|
|
|
, python-dateutil
|
2017-05-17 07:19:16 +01:00
|
|
|
, docutils
|
2021-05-16 15:02:02 +01:00
|
|
|
, doit
|
|
|
|
, fetchPypi
|
|
|
|
, freezegun
|
|
|
|
, ghp-import
|
|
|
|
, hsluv
|
|
|
|
, html5lib
|
|
|
|
, ipykernel
|
|
|
|
, jinja2
|
2017-05-17 07:19:16 +01:00
|
|
|
, lxml
|
2021-05-16 15:02:02 +01:00
|
|
|
, Mako
|
2017-05-17 07:19:16 +01:00
|
|
|
, markdown
|
2021-05-16 15:02:02 +01:00
|
|
|
, micawber
|
|
|
|
, mock
|
|
|
|
, natsort
|
2018-09-12 09:12:05 +01:00
|
|
|
, notebook
|
2021-05-16 15:02:02 +01:00
|
|
|
, phpserialize
|
|
|
|
, piexif
|
|
|
|
, pillow
|
|
|
|
, pygal
|
|
|
|
, pygments
|
|
|
|
, pyphen
|
|
|
|
, PyRSS2Gen
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2019-02-24 16:11:37 +00:00
|
|
|
, ruamel_yaml
|
2021-05-16 15:02:02 +01:00
|
|
|
, stdenv
|
|
|
|
, toml
|
|
|
|
, typogrify
|
|
|
|
, unidecode
|
2019-04-23 10:57:21 +01:00
|
|
|
, watchdog
|
2021-05-16 15:02:02 +01:00
|
|
|
, Yapsy
|
2017-05-17 07:19:16 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Nikola";
|
2021-02-15 21:35:48 +00:00
|
|
|
version = "8.1.3";
|
2021-05-16 15:02:02 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-05-17 07:19:16 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-15 21:35:48 +00:00
|
|
|
sha256 = "05eac356bb4273cdd05d2dd6ad676226133496c457af91987c3f0d40e2fe57ef";
|
2018-12-03 09:56:42 +00:00
|
|
|
};
|
|
|
|
|
2021-05-16 15:02:02 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
Babel
|
|
|
|
blinker
|
2021-07-03 12:37:24 +01:00
|
|
|
python-dateutil
|
2021-05-16 15:02:02 +01:00
|
|
|
docutils
|
|
|
|
doit
|
|
|
|
ghp-import
|
|
|
|
hsluv
|
|
|
|
html5lib
|
|
|
|
ipykernel
|
|
|
|
jinja2
|
|
|
|
lxml
|
|
|
|
Mako
|
|
|
|
markdown
|
|
|
|
micawber
|
|
|
|
natsort
|
|
|
|
notebook
|
|
|
|
phpserialize
|
|
|
|
piexif
|
|
|
|
pillow
|
|
|
|
pygal
|
|
|
|
pygments
|
|
|
|
pyphen
|
|
|
|
PyRSS2Gen
|
|
|
|
requests
|
|
|
|
ruamel_yaml
|
|
|
|
toml
|
|
|
|
typogrify
|
|
|
|
unidecode
|
|
|
|
watchdog
|
|
|
|
Yapsy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2019-06-01 11:56:30 +01:00
|
|
|
|
2021-05-16 15:02:02 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--cov nikola --cov-report term-missing" ""
|
2018-09-12 09:12:05 +01:00
|
|
|
'';
|
|
|
|
|
2021-05-16 15:02:02 +01:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_compiling_markdown"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nikola" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Static website and blog generator";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://getnikola.com/";
|
2021-05-16 15:02:02 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
# All tests fail
|
2021-02-17 22:11:21 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2017-05-17 07:19:16 +01:00
|
|
|
};
|
|
|
|
}
|