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 ]; };