nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 poetry-core,
8
9 # dependencies
10 aiohttp,
11 click,
12 msgpack,
13 textual,
14 textual-serve,
15 typing-extensions,
16}:
17
18buildPythonPackage rec {
19 pname = "textual-dev";
20 version = "1.8.0";
21 pyproject = true;
22
23 src = fetchFromGitHub {
24 owner = "Textualize";
25 repo = "textual-dev";
26 tag = "v${version}";
27 hash = "sha256-0NOFc0FKbVEeZ6rNZGX8lo5W8RU3lKJlH+AqRCifuOE=";
28 };
29
30 build-system = [ poetry-core ];
31
32 dependencies = [
33 aiohttp
34 click
35 msgpack
36 textual
37 textual-serve
38 typing-extensions
39 ];
40
41 # Tests require a running textual WS server
42 doCheck = false;
43
44 pythonImportsCheck = [ "textual_dev" ];
45
46 meta = {
47 description = "Development tools for Textual";
48 homepage = "https://github.com/Textualize/textual-dev";
49 changelog = "https://github.com/Textualize/textual-dev/releases/tag/v${version}";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ yannip ];
52 mainProgram = "textual";
53 };
54}