1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 6 # build-system 7 hatchling, 8 9 # dependencies 10 click, 11 rich, 12 typing-extensions, 13 14 # tests 15 inline-snapshot, 16 pytestCheckHook, 17}: 18 19buildPythonPackage rec { 20 pname = "rich-toolkit"; 21 version = "0.14.1"; 22 pyproject = true; 23 24 src = fetchFromGitHub { 25 owner = "patrick91"; 26 repo = "rich-toolkit"; 27 tag = "v${version}"; 28 hash = "sha256-RoK84ejiJRgcs4bEJTBAGULDPDJh6rtrxrovwKWZ/Oc="; 29 }; 30 31 build-system = [ 32 hatchling 33 ]; 34 35 dependencies = [ 36 click 37 rich 38 typing-extensions 39 ]; 40 41 nativeCheckInputs = [ 42 inline-snapshot 43 pytestCheckHook 44 ]; 45 46 pythonImportsCheck = [ 47 "rich_toolkit" 48 ]; 49 50 meta = { 51 changelog = "https://github.com/patrick91/rich-toolkit/releases/tag/${src.tag}"; 52 description = "Rich toolkit for building command-line applications"; 53 homepage = "https://pypi.org/project/rich-toolkit"; 54 license = lib.licenses.mit; 55 maintainers = with lib.maintainers; [ ]; 56 }; 57}