Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, fetchpatch 5, click 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "click-command-tree"; 11 version = "1.1.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "whwright"; 16 repo = pname; 17 rev = version; 18 hash = "sha256-vFOcn+ibyLZnhU3OQMtnHI04UqAY2/CCvhq4EEU4XFo="; 19 }; 20 21 patches = [ 22 (fetchpatch { 23 name = "remove-setup-downloading-flake8.patch"; 24 url = "https://github.com/whwright/click-command-tree/commit/1ecfcfa29bf01e1131e6ec712bd7338ac1283dc8.patch"; 25 hash = "sha256-u5jsNfEo1+XNlkVGPCM/rsDPnYko6cr2z2si9nq+sLA="; 26 }) 27 ]; 28 29 propagatedBuildInputs = [ 30 click 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 ]; 36 37 pytestFlagsArray = [ 38 "tests.py" 39 ]; 40 41 pythonImportsCheck = [ "click_command_tree" ]; 42 43 meta = with lib; { 44 description = "click plugin to show the command tree of your CLI"; 45 homepage = "https://github.com/whwright/click-command-tree"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ tjni ]; 48 }; 49}