1{ 2 lib, 3 aiofiles, 4 aiohttp, 5 aiolimiter, 6 bleak, 7 bleak-retry-connector, 8 buildPythonPackage, 9 cryptography, 10 fetchFromGitHub, 11 protobuf, 12 pythonOlder, 13 setuptools, 14}: 15 16buildPythonPackage rec { 17 pname = "tesla-fleet-api"; 18 version = "1.2.4"; 19 pyproject = true; 20 21 disabled = pythonOlder "3.10"; 22 23 src = fetchFromGitHub { 24 owner = "Teslemetry"; 25 repo = "python-tesla-fleet-api"; 26 tag = "v${version}"; 27 hash = "sha256-h6MGYzDNzEss5FIf+2J5oROQw/7OVLpkXuheYKd4BrQ="; 28 }; 29 30 build-system = [ setuptools ]; 31 32 dependencies = [ 33 aiofiles 34 aiohttp 35 aiolimiter 36 bleak 37 bleak-retry-connector 38 cryptography 39 protobuf 40 ]; 41 42 # Module has no tests 43 doCheck = false; 44 45 pythonImportsCheck = [ "tesla_fleet_api" ]; 46 47 meta = with lib; { 48 description = "Python library for Tesla Fleet API and Teslemetry"; 49 homepage = "https://github.com/Teslemetry/python-tesla-fleet-api"; 50 changelog = "https://github.com/Teslemetry/python-tesla-fleet-api/releases/tag/${src.tag}"; 51 license = licenses.asl20; 52 maintainers = with maintainers; [ fab ]; 53 }; 54}