Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 22 additions & 13 deletions pkgs/development/python-modules/nikola/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{ lib
, stdenv
, aiohttp
, babel
, blinker
, buildPythonPackage
, python-dateutil
, docutils
, doit
, feedparser
, fetchPypi
, freezegun
, ghp-import
Expand All @@ -28,10 +29,11 @@
, pyphen
, pyrss2gen
, pytestCheckHook
, python-dateutil
, pythonOlder
, requests
, ruamel-yaml
, stdenv
, setuptools
, toml
, typogrify
, unidecode
Expand All @@ -41,24 +43,33 @@

buildPythonPackage rec {
pname = "nikola";
version = "8.2.4";
format = "setuptools";
version = "8.3.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchPypi {
pname = "Nikola";
inherit version;
hash = "sha256-LNVk2zfNwY4CC4qulqfNXwi3mWyFxzWIeMykh6gFOL8=";
hash = "sha256-VYuhiGLMTHcOZM8/bGZT7Xx5BOHo9gsMPjufYglrBL0=";
};

postPatch = ''
substituteInPlace setup.cfg \
--replace-fail "--cov nikola --cov-report term-missing" ""
'';

nativeBuildInputs = [
setuptools
];

propagatedBuildInputs = [
aiohttp
babel
blinker
python-dateutil
docutils
doit
feedparser
ghp-import
hsluv
html5lib
Expand All @@ -77,6 +88,7 @@ buildPythonPackage rec {
pygments
pyphen
pyrss2gen
python-dateutil
requests
ruamel-yaml
toml
Expand All @@ -92,11 +104,6 @@ buildPythonPackage rec {
pytestCheckHook
];

postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov nikola --cov-report term-missing" ""
'';

disabledTests = [
# AssertionError
"test_compiling_markdown"
Expand All @@ -107,7 +114,9 @@ buildPythonPackage rec {
"test_format_date_locale_variants"
];

pythonImportsCheck = [ "nikola" ];
pythonImportsCheck = [
"nikola"
];

meta = with lib; {
description = "Static website and blog generator";
Expand Down