1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, setuptools
6, geopy
7, docopt
8, certifi
9, amqtt
10, websockets
11, aiohttp
12, pytestCheckHook
13, asynctest
14, pytest-asyncio
15}:
16
17buildPythonPackage rec {
18 pname = "volvooncall";
19 version = "0.10.1";
20
21 disabled = pythonOlder "3.8";
22
23 format = "setuptools";
24
25 src = fetchFromGitHub {
26 owner = "molobrakos";
27 repo = "volvooncall";
28 rev = "v${version}";
29 hash = "sha256-udYvgKj7Rlc/hA86bbeBfnoVRjKkXT4TwpceWz226cU=";
30 };
31
32 propagatedBuildInputs = [
33 aiohttp
34 ];
35
36 passthru.optional-dependencies = {
37 console = [
38 certifi
39 docopt
40 geopy
41 ];
42 mqtt = [
43 amqtt
44 certifi
45 ];
46 };
47
48 checkInputs = [
49 asynctest
50 pytest-asyncio
51 pytestCheckHook
52 ] ++ passthru.optional-dependencies.mqtt;
53
54 pythonImportsCheck = [ "volvooncall" ];
55
56 meta = with lib; {
57 description = "Retrieve information from the Volvo On Call web service";
58 homepage = "https://github.com/molobrakos/volvooncall";
59 license = licenses.unlicense;
60 maintainers = with maintainers; [ dotlambda ];
61 };
62}