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.15.1";
22 pyproject = true;
23
24 src = fetchFromGitHub {
25 owner = "patrick91";
26 repo = "rich-toolkit";
27 tag = version;
28 hash = "sha256-NcdABfbqE+VzE6bptBO98Cf7jetlfVqa/LB5Chg/P8Y=";
29 };
30
31 build-system = [ hatchling ];
32
33 dependencies = [
34 click
35 rich
36 typing-extensions
37 ];
38
39 nativeCheckInputs = [
40 inline-snapshot
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [ "rich_toolkit" ];
45
46 meta = {
47 changelog = "https://github.com/patrick91/rich-toolkit/releases/tag/${src.tag}";
48 description = "Rich toolkit for building command-line applications";
49 homepage = "https://github.com/patrick91/rich-toolkit/";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ ];
52 };
53}