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.7.2";
18 pyproject = true;
19
20 disabled = pythonOlder "3.11";
21
22 src = fetchFromGitHub {
23 owner = "dontinelli";
24 repo = "fyta_cli";
25 tag = "v${version}";
26 hash = "sha256-YYH15ZuRZirSFC7No1goY/afk2BGtCCykcZAnCDdq7U=";
27 };
28
29 build-system = [ hatchling ];
30
31 dependencies = [
32 aiohttp
33 mashumaro
34 ];
35
36 doCheck = false; # Failed: async def functions are not natively supported.
37
38 nativeCheckInputs = [
39 aioresponses
40 pytest-asyncio
41 pytestCheckHook
42 syrupy
43 ];
44
45 pythonImportsCheck = [ "fyta_cli" ];
46
47 pytestFlags = [ "--snapshot-update" ];
48
49 meta = with lib; {
50 description = "Module to access the FYTA API";
51 homepage = "https://github.com/dontinelli/fyta_cli";
52 changelog = "https://github.com/dontinelli/fyta_cli/releases/tag/v${version}";
53 license = licenses.gpl3Only;
54 maintainers = with maintainers; [ fab ];
55 };
56}