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.1.11";
20 format = "pyproject";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "hacf-fr";
26 repo = pname;
27 rev = "v${version}";
28 sha256 = "sha256-71UFVXfww3wgSO2qoRCuV80+33B91Bjl2+nuuCbQRLg=";
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 checkInputs = [
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 license = licenses.mit;
62 maintainers = with maintainers; [ fab ];
63 };
64}