nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 cachecontrol,
5 feedparser,
6 fetchFromGitHub,
7 gitpython,
8 jsonfeed,
9 mkdocs,
10 pytest-cov-stub,
11 pytestCheckHook,
12 setuptools,
13 validator-collection,
14}:
15
16buildPythonPackage rec {
17 pname = "mkdocs-rss-plugin";
18 version = "1.17.9";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "Guts";
23 repo = "mkdocs-rss-plugin";
24 tag = version;
25 hash = "sha256-rUMjS0+895SsU7qNckLL3BprUQa/3lJDjpwhMkF0jYg=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 cachecontrol
32 gitpython
33 mkdocs
34 ]
35 ++ cachecontrol.optional-dependencies.filecache;
36
37 nativeCheckInputs = [
38 feedparser
39 jsonfeed
40 pytest-cov-stub
41 pytestCheckHook
42 validator-collection
43 ];
44
45 pythonImportsCheck = [ "mkdocs_rss_plugin" ];
46
47 disabledTests = [
48 # Tests require network access
49 "test_plugin_config_through_mkdocs"
50 "test_remote_image"
51 # Configuration error
52 "test_plugin_config_blog_enabled"
53 "test_plugin_config_social_cards_enabled_but_integration_disabled"
54 "test_plugin_config_theme_material"
55 "test_simple_build"
56 ];
57
58 disabledTestPaths = [
59 # Tests require network access
60 "tests/test_integrations_material_social_cards.py"
61 "tests/test_build_no_git.py"
62 "tests/test_build.py"
63 ];
64
65 meta = {
66 description = "MkDocs plugin to generate a RSS feeds for created and updated pages, using git log and YAML frontmatter";
67 homepage = "https://github.com/Guts/mkdocs-rss-plugin";
68 changelog = "https://github.com/Guts/mkdocs-rss-plugin/blob/${src.tag}/CHANGELOG.md";
69 license = lib.licenses.mit;
70 maintainers = with lib.maintainers; [ fab ];
71 };
72}