1{ lib
2, aiohttp
3, aioresponses
4, buildPythonPackage
5, click
6, dateparser
7, fetchFromGitHub
8, marshmallow-dataclass
9, poetry-core
10, pyjwt
11, pythonOlder
12, pytest-asyncio
13, pytestCheckHook
14, tabulate
15}:
16
17buildPythonPackage rec {
18 pname = "renault-api";
19 version = "0.2.0";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "hacf-fr";
26 repo = pname;
27 rev = "refs/tags/v${version}";
28 hash = "sha256-x6+rFstZM7Uplwa8NeRBTb8FYSD/NGjN/3q5earvN7c=";
29 };
30
31 nativeBuildInputs = [
32 poetry-core
33 ];
34
35 propagatedBuildInputs = [
36 aiohttp
37 click
38 dateparser
39 marshmallow-dataclass
40 pyjwt
41 tabulate
42 ];
43
44 nativeCheckInputs = [
45 aioresponses
46 pytest-asyncio
47 pytestCheckHook
48 ];
49
50 pytestFlagsArray = [
51 "--asyncio-mode=auto"
52 ];
53
54 pythonImportsCheck = [
55 "renault_api"
56 ];
57
58 meta = with lib; {
59 description = "Python library to interact with the Renault API";
60 homepage = "https://github.com/hacf-fr/renault-api";
61 changelog = "https://github.com/hacf-fr/renault-api/releases/tag/v${version}";
62 license = licenses.mit;
63 maintainers = with maintainers; [ fab ];
64 };
65}