1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 python-yakh,
11 rich,
12
13 # nativeCheckInputs
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "questo";
19 version = "0.4.1";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "petereon";
24 repo = "questo";
25 rev = "v${version}";
26 hash = "sha256-XCxSH2TSU4YdfyqfLpVSEeDeU1S24C+NezP1IL5qj/4=";
27 };
28
29 build-system = [
30 poetry-core
31 ];
32
33 dependencies = [
34 python-yakh
35 rich
36 ];
37
38 pythonImportsCheck = [
39 "questo"
40 ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 ];
45
46 meta = {
47 description = "Library of extensible and modular CLI prompt elements";
48 homepage = "https://github.com/petereon/questo";
49 license = lib.licenses.mit;
50 maintainers = with lib.maintainers; [ doronbehar ];
51 };
52}