5083ee08a2
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
58 lines
1,010 B
Nix
58 lines
1,010 B
Nix
{ lib
|
|
, aiofile
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pbr
|
|
, httpx
|
|
, pycryptodome
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, respx
|
|
, time-machine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bimmer-connected";
|
|
version = "0.10.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bimmerconnected";
|
|
repo = "bimmer_connected";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-o4h84WM/p4gVrxv7YDNgwDpyBYu7Aileagwc8PXNwPs=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
];
|
|
|
|
PBR_VERSION = version;
|
|
|
|
propagatedBuildInputs = [
|
|
aiofile
|
|
httpx
|
|
pycryptodome
|
|
pyjwt
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
respx
|
|
time-machine
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"bimmer_connected"
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|