55 lines
1.1 KiB
Nix
55 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
aiofiles,
|
|
aiohttp,
|
|
aiolimiter,
|
|
bleak,
|
|
bleak-retry-connector,
|
|
buildPythonPackage,
|
|
cryptography,
|
|
fetchFromGitHub,
|
|
protobuf,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tesla-fleet-api";
|
|
version = "1.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Teslemetry";
|
|
repo = "python-tesla-fleet-api";
|
|
tag = "v${version}";
|
|
hash = "sha256-z7oniC58MpWlz/IGd2oRWgoj5yAL/gaDHGotLKK2CVc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiofiles
|
|
aiohttp
|
|
aiolimiter
|
|
bleak
|
|
bleak-retry-connector
|
|
cryptography
|
|
protobuf
|
|
];
|
|
|
|
# Module has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "tesla_fleet_api" ];
|
|
|
|
meta = with lib; {
|
|
description = "Python library for Tesla Fleet API and Teslemetry";
|
|
homepage = "https://github.com/Teslemetry/python-tesla-fleet-api";
|
|
changelog = "https://github.com/Teslemetry/python-tesla-fleet-api/releases/tag/${src.tag}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|