2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
2022-09-30 11:47:45 +00:00
|
|
|
, aiofile
|
2021-06-28 23:13:55 +00:00
|
|
|
, 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";
|
2023-03-15 16:39:30 +00:00
|
|
|
version = "0.13.0";
|
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}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-o6rCxSJtWqcHqcrhKaVSxEfFLDBikUU9jAszRjihM2o=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
pbr
|
|
|
|
];
|
|
|
|
|
|
|
|
PBR_VERSION = version;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
2022-09-30 11:47:45 +00:00
|
|
|
aiofile
|
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
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
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
|
|
|
];
|
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"bimmer_connected"
|
|
|
|
];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|