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
|
2021-05-20 23:08:51 +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
|
|
|
|
, PyRSS2Gen
|
|
|
|
, 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
|
2021-05-20 23:08:51 +00:00
|
|
|
, Yapsy
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Nikola";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = "8.2.2";
|
2021-05-20 23:08:51 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-04-27 09:35:20 +00:00
|
|
|
sha256 = "sha256-lfSrBRwkWMHTFEJ4KmrWIx9XIMO5I9XxcuJe7zTxJsE=";
|
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
|
|
|
|
Mako
|
|
|
|
markdown
|
|
|
|
micawber
|
|
|
|
natsort
|
|
|
|
notebook
|
|
|
|
phpserialize
|
|
|
|
piexif
|
|
|
|
pillow
|
|
|
|
pygal
|
|
|
|
pygments
|
|
|
|
pyphen
|
|
|
|
PyRSS2Gen
|
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
ruamel-yaml
|
2021-05-20 23:08:51 +00:00
|
|
|
toml
|
|
|
|
typogrify
|
|
|
|
unidecode
|
|
|
|
watchdog
|
|
|
|
Yapsy
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|