From 81578d2c371bfc08de5c7a4d82a13a9ac1ec6690 Mon Sep 17 00:00:00 2001 From: Aldo Borrero <82811+aldoborrero@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:40:26 +0200 Subject: [PATCH] mdformat-mkdocs: init at 1.0.2 --- .../mdformat-mkdocs/default.nix | 40 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/mdformat-mkdocs/default.nix diff --git a/pkgs/development/python-modules/mdformat-mkdocs/default.nix b/pkgs/development/python-modules/mdformat-mkdocs/default.nix new file mode 100644 index 000000000000..5df491ea8575 --- /dev/null +++ b/pkgs/development/python-modules/mdformat-mkdocs/default.nix @@ -0,0 +1,40 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mdformat +, mdformat-gfm +, mdit-py-plugins +, pythonOlder +}: + +buildPythonPackage rec { + pname = "mdformat-mkdocs"; + version = "1.0.2"; + format = "flit"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "KyleKing"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-H+wqgcXNrdrZ5aQvZ7XM8YpBpVZM6pFtsANC00UZ0jM="; + }; + + buildInputs = [ + mdformat + mdformat-gfm + mdit-py-plugins + ]; + + pythonImportsCheck = [ + "mdformat_mkdocs" + ]; + + meta = with lib; { + description = "mdformat plugin for MkDocs"; + homepage = "https://github.com/KyleKing/mdformat-mkdocs"; + license = licenses.mit; + maintainers = with maintainers; [ aldoborrero ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6632d5ad8e60..50e7868fb495 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6215,6 +6215,7 @@ self: super: with self; { mdformat-footnote = callPackage ../development/python-modules/mdformat-footnote { }; mdformat-frontmatter = callPackage ../development/python-modules/mdformat-frontmatter { }; mdformat-gfm = callPackage ../development/python-modules/mdformat-gfm { }; + mdformat-mkdocs = callPackage ../development/python-modules/mdformat-mkdocs { }; mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };