2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
2021-05-20 23:08:51 +00:00
|
|
|
, aiohttp
|
2022-05-18 14:49:53 +00:00
|
|
|
, babel
|
2021-05-20 23:08:51 +00:00
|
|
|
, blinker
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
2021-07-04 02:40:35 +00:00
|
|
|
, python-dateutil
|
2020-04-24 23:36:52 +00:00
|
|
|
, docutils
|
2021-05-20 23:08:51 +00:00
|
|
|
, doit
|
|
|
|
, fetchPypi
|
|
|
|
, freezegun
|
|
|
|
, ghp-import
|
|
|
|
, hsluv
|
|
|
|
, html5lib
|
|
|
|
, ipykernel
|
|
|
|
, jinja2
|
2020-04-24 23:36:52 +00:00
|
|
|
, lxml
|
2023-03-15 16:39:30 +00:00
|
|
|
, mako
|
2020-04-24 23:36:52 +00:00
|
|
|
, markdown
|
2021-05-20 23:08:51 +00:00
|
|
|
, micawber
|
|
|
|
, mock
|
|
|
|
, natsort
|
2020-04-24 23:36:52 +00:00
|
|
|
, notebook
|
2021-05-20 23:08:51 +00:00
|
|
|
, phpserialize
|
|
|
|
, piexif
|
|
|
|
, pillow
|
|
|
|
, pygal
|
|
|
|
, pygments
|
|
|
|
, pyphen
|
2023-03-15 16:39:30 +00:00
|
|
|
, pyrss2gen
|
2021-05-20 23:08:51 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, ruamel-yaml
|
2021-05-20 23:08:51 +00:00
|
|
|
, stdenv
|
|
|
|
, toml
|
|
|
|
, typogrify
|
|
|
|
, unidecode
|
2020-04-24 23:36:52 +00:00
|
|
|
, watchdog
|
2023-03-15 16:39:30 +00:00
|
|
|
, yapsy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "nikola";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "8.2.3";
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "Nikola";
|
|
|
|
inherit version;
|
|
|
|
hash = "sha256-c8eadkmYWS88nGwi6QwPqHg7FBXlkdazKSrbWDMw/UA=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-05-18 14:49:53 +00:00
|
|
|
babel
|
2021-05-20 23:08:51 +00:00
|
|
|
blinker
|
2021-07-04 02:40:35 +00:00
|
|
|
python-dateutil
|
2021-05-20 23:08:51 +00:00
|
|
|
docutils
|
|
|
|
doit
|
|
|
|
ghp-import
|
|
|
|
hsluv
|
|
|
|
html5lib
|
|
|
|
ipykernel
|
|
|
|
jinja2
|
|
|
|
lxml
|
2023-03-15 16:39:30 +00:00
|
|
|
mako
|
2021-05-20 23:08:51 +00:00
|
|
|
markdown
|
|
|
|
micawber
|
|
|
|
natsort
|
|
|
|
notebook
|
|
|
|
phpserialize
|
|
|
|
piexif
|
|
|
|
pillow
|
|
|
|
pygal
|
|
|
|
pygments
|
|
|
|
pyphen
|
2023-03-15 16:39:30 +00:00
|
|
|
pyrss2gen
|
2021-05-20 23:08:51 +00:00
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2021-05-20 23:08:51 +00:00
|
|
|
toml
|
|
|
|
typogrify
|
|
|
|
unidecode
|
|
|
|
watchdog
|
2023-03-15 16:39:30 +00:00
|
|
|
yapsy
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-05-20 23:08:51 +00:00
|
|
|
freezegun
|
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace "--cov nikola --cov-report term-missing" ""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AssertionError
|
|
|
|
"test_compiling_markdown"
|
2023-03-15 16:39:30 +00:00
|
|
|
# Date formatting slightly differs from expectation
|
|
|
|
"test_format_date_long"
|
|
|
|
"test_format_date_timezone"
|
|
|
|
"test_format_date_locale_variants"
|
|
|
|
"test_format_date_locale_variants"
|
2021-05-20 23:08:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "nikola" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Static website and blog generator";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://getnikola.com/";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
|
|
|
# All tests fail
|
2021-02-19 19:06:45 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|