1{ lib 2, aiofile 3, buildPythonPackage 4, pythonOlder 5, fetchFromGitHub 6, pbr 7, httpx 8, pycryptodome 9, pyjwt 10, pytestCheckHook 11, respx 12, time-machine 13}: 14 15buildPythonPackage rec { 16 pname = "bimmer-connected"; 17 version = "0.10.4"; 18 format = "setuptools"; 19 20 disabled = pythonOlder "3.6"; 21 22 src = fetchFromGitHub { 23 owner = "bimmerconnected"; 24 repo = "bimmer_connected"; 25 rev = "refs/tags/${version}"; 26 hash = "sha256-o4h84WM/p4gVrxv7YDNgwDpyBYu7Aileagwc8PXNwPs="; 27 }; 28 29 nativeBuildInputs = [ 30 pbr 31 ]; 32 33 PBR_VERSION = version; 34 35 propagatedBuildInputs = [ 36 aiofile 37 httpx 38 pycryptodome 39 pyjwt 40 ]; 41 42 checkInputs = [ 43 pytestCheckHook 44 respx 45 time-machine 46 ]; 47 48 pythonImportsCheck = [ 49 "bimmer_connected" 50 ]; 51 52 meta = with lib; { 53 description = "Library to read data from the BMW Connected Drive portal"; 54 homepage = "https://github.com/bimmerconnected/bimmer_connected"; 55 license = licenses.asl20; 56 maintainers = with maintainers; [ dotlambda ]; 57 }; 58}