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
|
2021-11-01 20:59:40 +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-12-30 18:50:19 +00:00
|
|
|
version = "8.2.0";
|
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-12-30 18:50:19 +00:00
|
|
|
sha256 = "9998fedfcb932e19e3b54faeb497a49cde8b15163af764c5afe5847fef5ec1ff";
|
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
|
2021-11-01 20:59:40 +00:00
|
|
|
ruamel-yaml
|
2021-05-16 15:02:02 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|