depot/third_party/nixpkgs/pkgs/development/python-modules/tesla-fleet-api/default.nix
Default email 60f07311b9 Project import generated by Copybara.
GitOrigin-RevId: f8e2ebd66d097614d51a56a755450d4ae1632df1
2024-02-06 17:22:34 -08:00

45 lines
942 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pythonOlder
, aiohttp
}:
buildPythonPackage rec {
pname = "tesla-fleet-api";
version = "0.2.7";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "Teslemetry";
repo = "python-tesla-fleet-api";
rev = "refs/tags/v${version}";
hash = "sha256-yYvC53uBAiLP009HdXdy+FM+tGc5CLQ8OFwP//Zk488=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
];
# 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 ];
};
}