nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 beautysh,
4 buildPythonPackage,
5 fetchFromGitHub,
6 mdformat,
7 mdformat-gfm,
8 mdit-py-plugins,
9 poetry-core,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "mdformat-beautysh";
15 version = "1.0.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "hukkin";
20 repo = "mdformat-beautysh";
21 tag = version;
22 hash = "sha256-Wzwy2FSknohmgrZ/ACliBDD2lOaQKKHyacAL57Ci3SU=";
23 };
24
25 build-system = [ poetry-core ];
26
27 dependencies = [
28 beautysh
29 mdformat
30 mdformat-gfm
31 mdit-py-plugins
32 ];
33
34 nativeCheckInputs = [ pytestCheckHook ];
35
36 pythonImportsCheck = [ "mdformat_beautysh" ];
37
38 meta = {
39 description = "Mdformat plugin to beautify Bash scripts";
40 homepage = "https://github.com/hukkin/mdformat-beautysh";
41 changelog = "https://github.com/hukkin/mdformat-beautysh/releases/tag/${src.tag}";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ aldoborrero ];
44 };
45}