2024-05-15 15:35:15 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiohttp,
|
|
|
|
aiolimiter,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
2024-02-07 01:22:34 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "tesla-fleet-api";
|
2024-07-31 10:19:44 +00:00
|
|
|
version = "0.7.3";
|
2024-02-07 01:22:34 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Teslemetry";
|
|
|
|
repo = "python-tesla-fleet-api";
|
|
|
|
rev = "refs/tags/v${version}";
|
2024-07-31 10:19:44 +00:00
|
|
|
hash = "sha256-P5cU5TZ2zWVIkFp4USjofA6mOshG9IdjhYLXnY2z9fY=";
|
2024-02-07 01:22:34 +00:00
|
|
|
};
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
build-system = [ setuptools ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-02-07 01:22:34 +00:00
|
|
|
aiohttp
|
2024-04-21 15:54:59 +00:00
|
|
|
aiolimiter
|
2024-02-07 01:22:34 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# Module has no tests
|
2024-05-15 15:35:15 +00:00
|
|
|
doCheck = false;
|
2024-02-07 01:22:34 +00:00
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
pythonImportsCheck = [ "tesla_fleet_api" ];
|
2024-02-07 01:22:34 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|