2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pbr
|
2022-06-16 17:23:12 +00:00
|
|
|
, httpx
|
2021-12-06 16:07:01 +00:00
|
|
|
, pycryptodome
|
|
|
|
, pyjwt
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
, respx
|
2021-12-25 05:07:40 +00:00
|
|
|
, time-machine
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "bimmer-connected";
|
2022-09-09 14:08:57 +00:00
|
|
|
version = "0.10.3";
|
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";
|
2022-06-16 17:23:12 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2022-09-09 14:08:57 +00:00
|
|
|
hash = "sha256-3jCxncR7bD0DDAH6vt28eBal9cVI9liLbBCX0IJ2bQ8=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
PBR_VERSION = version;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-06-16 17:23:12 +00:00
|
|
|
httpx
|
2021-12-06 16:07:01 +00:00
|
|
|
pycryptodome
|
|
|
|
pyjwt
|
2021-06-28 23:13:55 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
2022-06-16 17:23:12 +00:00
|
|
|
respx
|
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 ];
|
|
|
|
};
|
|
|
|
}
|