20 buildPythonPackage rec {
21 pname = "bimmer-connected";
25 disabled = pythonOlder "3.8";
27 src = fetchFromGitHub {
28 owner = "bimmerconnected";
29 repo = "bimmer_connected";
30 rev = "refs/tags/${version}";
31 hash = "sha256-1Ef+8G30LdMtmOKOPoN3Xa7yhlHLBQvwoiPHJazu3c4=";
39 PBR_VERSION = version;
47 optional-dependencies = {
52 cp -R bimmer_connected/tests/responses $out/${python.sitePackages}/bimmer_connected/tests/
60 ] ++ lib.flatten (lib.attrValues optional-dependencies);
63 # presumably regressed in pytest-asyncio 0.23.0
64 "test_get_remote_position_too_old"
68 export TZDIR=${tzdata}/${python.sitePackages}/tzdata/zoneinfo
69 export PATH=$out/bin:$PATH
72 pythonImportsCheck = [ "bimmer_connected" ];
75 changelog = "https://github.com/bimmerconnected/bimmer_connected/releases/tag/${version}";
76 description = "Library to read data from the BMW Connected Drive portal";
77 mainProgram = "bimmerconnected";
78 homepage = "https://github.com/bimmerconnected/bimmer_connected";
79 license = licenses.asl20;
80 maintainers = with maintainers; [ dotlambda ];