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