1{
2 lib,
3 aiohttp,
4 aioresponses,
5 buildPythonPackage,
6 fetchFromGitHub,
7 hatchling,
8 mashumaro,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12 syrupy,
13}:
14
15buildPythonPackage rec {
16 pname = "fyta-cli";
17 version = "0.6.10";
18 pyproject = true;
19
20 disabled = pythonOlder "3.11";
21
22 src = fetchFromGitHub {
23 owner = "dontinelli";
24 repo = "fyta_cli";
25 rev = "refs/tags/v${version}";
26 hash = "sha256-sPbN6gMPtNzYTYQ5F8w59m5DKobx/TV6v5v8Q9u1rXQ=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 aiohttp
33 mashumaro
34 ];
35
36 nativeCheckInputs = [
37 aioresponses
38 pytest-asyncio
39 pytestCheckHook
40 syrupy
41 ];
42
43 pythonImportsCheck = [ "fyta_cli" ];
44
45 pytestFlagsArray = [ "--snapshot-update" ];
46
47 meta = with lib; {
48 description = "Module to access the FYTA API";
49 homepage = "https://github.com/dontinelli/fyta_cli";
50 changelog = "https://github.com/dontinelli/fyta_cli/releases/tag/v${version}";
51 license = licenses.gpl3Only;
52 maintainers = with maintainers; [ fab ];
53 };
54}