1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 jinja2,
7 pytest,
8 rich,
9 pythonOlder,
10 syrupy,
11 textual,
12}:
13
14buildPythonPackage rec {
15 pname = "pytest-textual-snapshot";
16 version = "0.4.0";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "Textualize";
23 repo = "pytest-textual-snapshot";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-XkXeyodRdwWqCP63Onx82Z3IbNLDDR/Lvaw8xUY7fAg=";
26 };
27
28 nativeBuildInputs = [ poetry-core ];
29
30 buildInputs = [ pytest ];
31
32 propagatedBuildInputs = [
33 jinja2
34 rich
35 syrupy
36 textual
37 ];
38
39 # Module has no tests
40 doCheck = false;
41
42 pythonImportsCheck = [ "pytest_textual_snapshot" ];
43
44 meta = with lib; {
45 description = "Snapshot testing for Textual applications";
46 homepage = "https://github.com/Textualize/pytest-textual-snapshot";
47 changelog = "https://github.com/Textualize/pytest-textual-snapshot/releases/tag/v${version}";
48 license = licenses.mit;
49 maintainers = with maintainers; [ fab ];
50 };
51}