From 065940d8804825eb573b6589e550f440fcbcfd07 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 15 Aug 2024 10:06:09 -0300 Subject: [PATCH] fix: mkdocs-rss-plugin Signed-off-by: Carlos Alexandro Becker --- pkgs/mkdocs-rss-plugin/default.nix | 47 +++++++++++++++++++++--------- 1 file changed, 34 insertions(+), 13 deletions(-) diff --git a/pkgs/mkdocs-rss-plugin/default.nix b/pkgs/mkdocs-rss-plugin/default.nix index ec47101..0f73dd8 100644 --- a/pkgs/mkdocs-rss-plugin/default.nix +++ b/pkgs/mkdocs-rss-plugin/default.nix @@ -1,24 +1,45 @@ { lib -, python3 -, fetchPypi +, python3Packages +, fetchFromGitHub }: -python3.pkgs.buildPythonPackage rec { +python3Packages.buildPythonPackage rec { pname = "mkdocs-rss-plugin"; - version = "1.12.1"; - format = "wheel"; - - src = fetchPypi rec { - inherit version format; - pname = "mkdocs_rss_plugin"; - hash = "sha256-rPuO7JXx2zibNncLr5mvO4fjhITMN5kxlKNaoXPrP+g="; - dist = python; - python = "py2.py3"; + version = "1.8.0"; + pyproject = true; + + disabled = python3Packages.pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "Guts"; + repo = "mkdocs-rss-plugin"; + rev = "refs/tags/${version}"; + hash = "sha256-rCz1Uk5uqIsnIWw0b1oBsjAO6aK/tpVgqAX/8dVnAGw="; }; + nativeBuildInputs = with python3Packages; [ + setuptools + ]; + + nativeCheckInputs = with python3Packages; [ + pytestCheckHook + ]; + + propagatedBuildInputs = with python3Packages; [ + mkdocs + gitpython + ]; + + doCheck = false; + meta = with lib; { - description = "MkDocs plugin to generate a RSS feeds for created and updated pages, using git log and YAML frontmatter (page.meta)."; + description = "Plugin to generate a RSS feeds for created and updated pages"; + longDescription = '' + MkDocs plugin to generate a RSS feeds for created and updated pages, using + git log and YAML frontmatter (page.meta). + ''; homepage = "https://github.com/Guts/mkdocs-rss-plugin"; + changelog = "https://github.com/Guts/mkdocs-rss-plugin/blob/${version}/CHANGELOG.md"; license = licenses.mit; maintainers = with maintainers; [ caarlos0 ]; };