mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 17:33:09 +00:00
mdformat-nix-alejandra: init at 0.1.0
This commit is contained in:
parent
81578d2c37
commit
40c281ad7a
@ -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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user