2022-03-05 16:20:37 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, geopy
|
|
|
|
, docopt
|
|
|
|
, certifi
|
|
|
|
, amqtt
|
|
|
|
, websockets
|
|
|
|
, aiohttp
|
|
|
|
, pytestCheckHook
|
|
|
|
, asynctest
|
|
|
|
, pytest-asyncio
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "volvooncall";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.10.1";
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "molobrakos";
|
|
|
|
repo = "volvooncall";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-udYvgKj7Rlc/hA86bbeBfnoVRjKkXT4TwpceWz226cU=";
|
2022-03-05 16:20:37 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.optional-dependencies = {
|
2022-03-30 09:31:56 +00:00
|
|
|
console = [
|
|
|
|
certifi
|
|
|
|
docopt
|
|
|
|
geopy
|
|
|
|
];
|
|
|
|
mqtt = [
|
|
|
|
amqtt
|
|
|
|
certifi
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
checkInputs = [
|
|
|
|
asynctest
|
|
|
|
pytest-asyncio
|
2022-03-30 09:31:56 +00:00
|
|
|
pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
] ++ passthru.optional-dependencies.mqtt;
|
2022-03-05 16:20:37 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "volvooncall" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Retrieve information from the Volvo On Call web service";
|
|
|
|
homepage = "https://github.com/molobrakos/volvooncall";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|