2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pbr
|
|
|
|
, requests
|
2021-12-06 16:07:01 +00:00
|
|
|
, pycryptodome
|
|
|
|
, pyjwt
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
, requests-mock
|
2021-12-25 05:07:40 +00:00
|
|
|
, time-machine
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bimmer-connected";
|
2021-12-25 05:07:40 +00:00
|
|
|
version = "0.8.5";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bimmerconnected";
|
|
|
|
repo = "bimmer_connected";
|
|
|
|
rev = version;
|
2021-12-25 05:07:40 +00:00
|
|
|
hash = "sha256-twVI84YCW+t9ar2vHN1OEiY5tT4/pHP29GnpWprdeHs=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
PBR_VERSION = version;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
requests
|
2021-12-06 16:07:01 +00:00
|
|
|
pycryptodome
|
|
|
|
pyjwt
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2021-12-06 16:07:01 +00:00
|
|
|
requests-mock
|
2021-12-25 05:07:40 +00:00
|
|
|
time-machine
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Library to read data from the BMW Connected Drive portal";
|
|
|
|
homepage = "https://github.com/bimmerconnected/bimmer_connected";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|