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