5c370c0b2a
GitOrigin-RevId: 33d1e753c82ffc557b4a585c77de43d4c922ebb5
44 lines
953 B
Nix
44 lines
953 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
aiolimiter,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "tesla-fleet-api";
|
|
version = "0.5.9";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Teslemetry";
|
|
repo = "python-tesla-fleet-api";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-aDejd9UHGXkBa5xyCJaLOkT1A2cWmnx1rKJkXjjw0fc=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
aiolimiter
|
|
];
|
|
|
|
# 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/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|