2024-04-21 15:54:59 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
feedparser,
|
|
|
|
fetchFromGitHub,
|
|
|
|
gitpython,
|
|
|
|
jsonfeed,
|
|
|
|
mkdocs,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
validator-collection,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mkdocs-rss-plugin";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "1.13.1";
|
2024-04-21 15:54:59 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Guts";
|
|
|
|
repo = "mkdocs-rss-plugin";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-FxVyPks42hoj2y2epZjSNuTOvhDk3Vxm895a4teeSuw=";
|
2024-04-21 15:54:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i "/--cov/d" setup.cfg
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
gitpython
|
|
|
|
mkdocs
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
feedparser
|
|
|
|
jsonfeed
|
|
|
|
pytestCheckHook
|
|
|
|
validator-collection
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mkdocs_rss_plugin" ];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_plugin_config_through_mkdocs"
|
2024-06-20 14:57:18 +00:00
|
|
|
"test_remote_image"
|
2024-04-21 15:54:59 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
|
|
|
# Tests require network access
|
|
|
|
"tests/test_integrations_material_social_cards.py"
|
|
|
|
"tests/test_build_no_git.py"
|
|
|
|
"tests/test_build.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "MkDocs plugin to generate a RSS feeds for created and updated pages, using git log and YAML frontmatter";
|
|
|
|
homepage = "https://github.com/Guts/mkdocs-rss-plugin";
|
|
|
|
changelog = "https://github.com/Guts/mkdocs-rss-plugin/blob/${src.rev}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|