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