From ae56d8f1919fd86e84ef991d9bfbef3aced2b15b Mon Sep 17 00:00:00 2001 From: Aldo Borrero <82811+aldoborrero@users.noreply.github.com> Date: Fri, 30 Jun 2023 13:41:53 +0200 Subject: [PATCH] mdformat-simple-breaks: init at 0.0.1 --- .../mdformat-simple-breaks/default.nix | 37 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 1 + 2 files changed, 38 insertions(+) create mode 100644 pkgs/development/python-modules/mdformat-simple-breaks/default.nix diff --git a/pkgs/development/python-modules/mdformat-simple-breaks/default.nix b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix new file mode 100644 index 000000000000..b4d293f6368f --- /dev/null +++ b/pkgs/development/python-modules/mdformat-simple-breaks/default.nix @@ -0,0 +1,37 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mdformat +, mdit-py-plugins +, pythonOlder +}: + +buildPythonPackage rec { + pname = "mdformat-simple-breaks"; + version = "0.0.1"; + format = "flit"; + + disabled = pythonOlder "3.7"; + + src = fetchFromGitHub { + owner = "csala"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-4lJHB4r9lI2uGJ/BmFFc92sumTRKBBwiRmGBdQkzfd0="; + }; + + buildInputs = [ + mdformat + ]; + + pythonImportsCheck = [ + "mdformat_simple_breaks" + ]; + + meta = with lib; { + description = "mdformat plugin to render thematic breaks using three dashes"; + homepage = "https://github.com/csala/mdformat-simple-breaks"; + license = licenses.mit; + maintainers = with maintainers; [ aldoborrero ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 2c6398c9e90c..a429cd7c819e 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -6217,6 +6217,7 @@ self: super: with self; { mdformat-gfm = callPackage ../development/python-modules/mdformat-gfm { }; mdformat-mkdocs = callPackage ../development/python-modules/mdformat-mkdocs { }; mdformat-nix-alejandra = callPackage ../development/python-modules/mdformat-nix-alejandra { }; + mdformat-simple-breaks = callPackage ../development/python-modules/mdformat-simple-breaks { }; mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };