3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/Nikola/default.nix

113 lines
1.6 KiB
Nix
Raw Normal View History

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
, 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
, ruamel-yaml
2021-05-16 15:02:02 +01:00
, stdenv
, toml
, typogrify
, unidecode
, watchdog
2021-05-16 15:02:02 +01:00
, Yapsy
2017-05-17 07:19:16 +01:00
}:
buildPythonPackage rec {
pname = "Nikola";
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;
sha256 = "9998fedfcb932e19e3b54faeb497a49cde8b15163af764c5afe5847fef5ec1ff";
};
2021-05-16 15:02:02 +01:00
propagatedBuildInputs = [
aiohttp
Babel
blinker
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
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";
homepage = "https://getnikola.com/";
2021-05-16 15:02:02 +01:00
license = licenses.mit;
maintainers = with maintainers; [ jluttine ];
# All tests fail
broken = stdenv.isDarwin;
2017-05-17 07:19:16 +01:00
};
}