1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, pbr 6, requests 7, pytestCheckHook 8, requests-mock 9}: 10 11buildPythonPackage rec { 12 pname = "bimmer-connected"; 13 version = "0.8.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.6"; 17 18 src = fetchFromGitHub { 19 owner = "bimmerconnected"; 20 repo = "bimmer_connected"; 21 rev = version; 22 sha256 = "sha256-sox24UpuIK5SP0IWVxa/NiyR5IrTzXe0SVTCd4FB6mo="; 23 }; 24 25 nativeBuildInputs = [ 26 pbr 27 ]; 28 29 PBR_VERSION = version; 30 31 propagatedBuildInputs = [ 32 requests 33 ]; 34 35 checkInputs = [ 36 pytestCheckHook 37 requests-mock 38 ]; 39 40 meta = with lib; { 41 description = "Library to read data from the BMW Connected Drive portal"; 42 homepage = "https://github.com/bimmerconnected/bimmer_connected"; 43 license = licenses.asl20; 44 maintainers = with maintainers; [ dotlambda ]; 45 }; 46}