nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 pydantic,
17 pytestCheckHook,
18}:
19
20buildPythonPackage rec {
21 pname = "rich-toolkit";
22 version = "0.17.1";
23 pyproject = true;
24
25 src = fetchFromGitHub {
26 owner = "patrick91";
27 repo = "rich-toolkit";
28 tag = version;
29 hash = "sha256-69x760lnMdwrNFUL1g9PBlTRGz34Ur2CHWbJq7PqBmk=";
30 };
31
32 build-system = [ hatchling ];
33
34 dependencies = [
35 click
36 rich
37 typing-extensions
38 ];
39
40 nativeCheckInputs = [
41 inline-snapshot
42 pydantic
43 pytestCheckHook
44 ];
45
46 pythonImportsCheck = [ "rich_toolkit" ];
47
48 meta = {
49 changelog = "https://github.com/patrick91/rich-toolkit/releases/tag/${src.tag}";
50 description = "Rich toolkit for building command-line applications";
51 homepage = "https://github.com/patrick91/rich-toolkit/";
52 license = lib.licenses.mit;
53 maintainers = [ ];
54 };
55}