2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
babel,
|
|
|
|
blinker,
|
|
|
|
buildPythonPackage,
|
|
|
|
docutils,
|
|
|
|
doit,
|
|
|
|
feedparser,
|
|
|
|
fetchPypi,
|
|
|
|
freezegun,
|
|
|
|
ghp-import,
|
|
|
|
hsluv,
|
|
|
|
html5lib,
|
|
|
|
ipykernel,
|
|
|
|
jinja2,
|
|
|
|
lxml,
|
|
|
|
mako,
|
|
|
|
markdown,
|
|
|
|
micawber,
|
|
|
|
mock,
|
|
|
|
natsort,
|
|
|
|
notebook,
|
|
|
|
phpserialize,
|
|
|
|
piexif,
|
|
|
|
pillow,
|
|
|
|
pygal,
|
|
|
|
pygments,
|
|
|
|
pyphen,
|
|
|
|
pyrss2gen,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-dateutil,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
ruamel-yaml,
|
|
|
|
setuptools,
|
|
|
|
toml,
|
|
|
|
typogrify,
|
|
|
|
unidecode,
|
|
|
|
watchdog,
|
|
|
|
yapsy,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "nikola";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "8.3.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
2023-05-24 13:37:59 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
2023-03-15 16:39:30 +00:00
|
|
|
pname = "Nikola";
|
|
|
|
inherit version;
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-IfJB2Rl3c1MyEiuyNpT3udfpM480VvFD8zosJFDHr7k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.cfg \
|
|
|
|
--replace-fail "--cov nikola --cov-report term-missing" ""
|
|
|
|
'';
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-04-21 15:54:59 +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
|
|
|
|
docutils
|
|
|
|
doit
|
2024-04-21 15:54:59 +00:00
|
|
|
feedparser
|
2021-05-20 23:08:51 +00:00
|
|
|
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
|
2024-04-21 15:54:59 +00:00
|
|
|
python-dateutil
|
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
|
|
|
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
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "nikola" ];
|
2021-05-20 23:08:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Static website and blog generator";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "nikola";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://getnikola.com/";
|
2023-05-24 13:37:59 +00:00
|
|
|
changelog = "https://github.com/getnikola/nikola/blob/v${version}/CHANGES.txt";
|
2021-05-20 23:08:51 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jluttine ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|