mdformat-nix-alejandra: init at 0.1.0

This commit is contained in:
Aldo Borrero 2023-06-30 13:41:11 +02:00
parent 81578d2c37
commit 40c281ad7a
2 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,41 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, mdformat
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "mdformat-nix-alejandra";
version = "0.1.0";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "aldoborrero";
repo = pname;
rev = "${version}";
hash = "sha256-jUXApGsxCA+pRm4m4ZiHWlxmVkqCPx3A46oQdtyKz5g=";
};
nativeBuildInputs = [
poetry-core
];
buildInputs = [
mdformat
];
pythonImportsCheck = [
"mdformat_nix_alejandra"
];
meta = with lib; {
description = "Mdformat plugin format Nix code blocks with alejandra";
homepage = "https://github.com/aldoborrero/mdformat-nix-alejandra";
license = licenses.mit;
maintainers = with maintainers; [ aldoborrero ];
};
}

View File

@ -6216,6 +6216,7 @@ self: super: with self; {
mdformat-frontmatter = callPackage ../development/python-modules/mdformat-frontmatter { };
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 { };
mdit-py-plugins = callPackage ../development/python-modules/mdit-py-plugins { };