567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
950 B
Nix
46 lines
950 B
Nix
{
|
|
lib,
|
|
beautysh,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
mdformat,
|
|
mdformat-gfm,
|
|
mdit-py-plugins,
|
|
poetry-core,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mdformat-beautysh";
|
|
version = "1.0.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hukkin";
|
|
repo = "mdformat-beautysh";
|
|
tag = version;
|
|
hash = "sha256-Wzwy2FSknohmgrZ/ACliBDD2lOaQKKHyacAL57Ci3SU=";
|
|
};
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
dependencies = [
|
|
beautysh
|
|
mdformat
|
|
mdformat-gfm
|
|
mdit-py-plugins
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "mdformat_beautysh" ];
|
|
|
|
meta = {
|
|
description = "Mdformat plugin to beautify Bash scripts";
|
|
homepage = "https://github.com/hukkin/mdformat-beautysh";
|
|
changelog = "https://github.com/hukkin/mdformat-beautysh/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ aldoborrero ];
|
|
};
|
|
}
|