Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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.13.6"; 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-MQYS7EEBGgvIBjSQ80a49SQv1GNVgeriBtQn+O7hMtg="; 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 nativeCheckInputs = [ 43 pytestCheckHook 44 respx 45 time-machine 46 ]; 47 48 pythonImportsCheck = [ 49 "bimmer_connected" 50 ]; 51 52 meta = with lib; { 53 changelog = "https://github.com/bimmerconnected/bimmer_connected/releases/tag/${version}"; 54 description = "Library to read data from the BMW Connected Drive portal"; 55 homepage = "https://github.com/bimmerconnected/bimmer_connected"; 56 license = licenses.asl20; 57 maintainers = with maintainers; [ dotlambda ]; 58 }; 59}