Merge pull request #284863 from fabaff/tesla-fleet-api-bump
python311Packages.tesla-fleet-api: init at 0.2.3
This commit is contained in:
commit
bb1d672e3e
45
pkgs/development/python-modules/tesla-fleet-api/default.nix
Normal file
45
pkgs/development/python-modules/tesla-fleet-api/default.nix
Normal file
@ -0,0 +1,45 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, pythonOlder
|
||||
, aiohttp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tesla-fleet-api";
|
||||
version = "0.2.3";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.10";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Teslemetry";
|
||||
repo = "python-tesla-fleet-api";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-sijFbwHRgTQXurg0bl5vH8NIGb2pR9XIQod7PJ6/rvY=";
|
||||
};
|
||||
|
||||
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 ];
|
||||
};
|
||||
}
|
@ -14286,6 +14286,8 @@ self: super: with self; {
|
||||
|
||||
tern = callPackage ../development/python-modules/tern { };
|
||||
|
||||
tesla-fleet-api = callPackage ../development/python-modules/tesla-fleet-api { };
|
||||
|
||||
tesla-powerwall = callPackage ../development/python-modules/tesla-powerwall { };
|
||||
|
||||
tesla-wall-connector = callPackage ../development/python-modules/tesla-wall-connector { };
|
||||
|
Loading…
Reference in New Issue
Block a user