1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 click,
6 fetchFromGitHub,
7 msgpack,
8 poetry-core,
9 pytest-aiohttp,
10 pytestCheckHook,
11 pythonOlder,
12 textual,
13 time-machine,
14 typing-extensions,
15}:
16
17buildPythonPackage rec {
18 pname = "textual-dev";
19 version = "1.5.1";
20 pyproject = true;
21
22 disabled = pythonOlder "3.8";
23
24 src = fetchFromGitHub {
25 owner = "Textualize";
26 repo = "textual-dev";
27 rev = "refs/tags/v${version}";
28 hash = "sha256-QnMKVt1WxnwGnZFNb7Gbus7xewGvyG5xJ0hIKKK5hug=";
29 };
30
31 nativeBuildInputs = [ poetry-core ];
32
33 propagatedBuildInputs = [
34 aiohttp
35 click
36 msgpack
37 textual
38 typing-extensions
39 ];
40
41 nativeCheckInputs = [
42 pytest-aiohttp
43 pytestCheckHook
44 time-machine
45 ];
46
47 pythonImportsCheck = [ "textual_dev" ];
48
49 meta = with lib; {
50 description = "Development tools for Textual";
51 mainProgram = "textual";
52 homepage = "https://github.com/Textualize/textual-dev";
53 license = licenses.mit;
54 maintainers = with maintainers; [ yannip ];
55 };
56}