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
2019-02-24 16:11:37 +00:00
, 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.1.3";
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 = "05eac356bb4273cdd05d2dd6ad676226133496c457af91987c3f0d40e2fe57ef";
};
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
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
};
}