22017988c6
GitOrigin-RevId: c777cdf5c564015d5f63b09cc93bef4178b19b01
52 lines
941 B
Nix
52 lines
941 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, pbr
|
|
, requests
|
|
, pycryptodome
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, requests-mock
|
|
, time-machine
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "bimmer-connected";
|
|
version = "0.8.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bimmerconnected";
|
|
repo = "bimmer_connected";
|
|
rev = version;
|
|
hash = "sha256-0yXEm8cjzw1ClSP8a5TB9RrugzgHSu40tTtyNQU4dfY=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pbr
|
|
];
|
|
|
|
PBR_VERSION = version;
|
|
|
|
propagatedBuildInputs = [
|
|
requests
|
|
pycryptodome
|
|
pyjwt
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
requests-mock
|
|
time-machine
|
|
];
|
|
|
|
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 ];
|
|
};
|
|
}
|