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.5";
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-b3oHpERUqeIw0yOxZytQuRE4jVUcahWlMQ+7ZBX0KL8=";
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 pythonImportsCheck = [ "renault_api" ];
51
52 meta = with lib; {
53 description = "Python library to interact with the Renault API";
54 homepage = "https://github.com/hacf-fr/renault-api";
55 license = licenses.mit;
56 maintainers = with maintainers; [ fab ];
57 };
58}