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 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}