depot/third_party/nixpkgs/pkgs/development/python-modules/tesla-fleet-api/default.nix

51 lines
1 KiB
Nix
Raw Normal View History

{
lib,
aiofiles,
aiohttp,
aiolimiter,
buildPythonPackage,
cryptography,
fetchFromGitHub,
protobuf,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "tesla-fleet-api";
version = "0.8.4";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Teslemetry";
repo = "python-tesla-fleet-api";
rev = "refs/tags/v${version}";
hash = "sha256-tPMX8zmiwNF/j4FdOU/cWROrBCensfLKfl1A8ouF+0Y=";
};
build-system = [ setuptools ];
dependencies = [
aiofiles
aiohttp
aiolimiter
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/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}