1{ 2 lib, 3 beautysh, 4 buildPythonPackage, 5 fetchFromGitHub, 6 mdformat, 7 mdformat-gfm, 8 mdit-py-plugins, 9 poetry-core, 10 pytestCheckHook, 11 pythonOlder, 12}: 13 14buildPythonPackage rec { 15 pname = "mdformat-beautysh"; 16 version = "0.1.1"; 17 pyproject = true; 18 19 disabled = pythonOlder "3.7"; 20 21 src = fetchFromGitHub { 22 owner = "hukkin"; 23 repo = "mdformat-beautysh"; 24 tag = version; 25 hash = "sha256-mH9PN6QsPmnIzh/0vxa+5mYLzANUHRruXC0ql4h8myw="; 26 }; 27 28 nativeBuildInputs = [ poetry-core ]; 29 30 propagatedBuildInputs = [ 31 beautysh 32 mdformat 33 mdformat-gfm 34 mdit-py-plugins 35 ]; 36 37 nativeCheckInputs = [ pytestCheckHook ]; 38 39 pythonImportsCheck = [ "mdformat_beautysh" ]; 40 41 meta = with lib; { 42 description = "Mdformat plugin to beautify Bash scripts"; 43 homepage = "https://github.com/hukkin/mdformat-beautysh"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ aldoborrero ]; 46 }; 47}