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