python311Packages.gotailwind: init at 0.2.2

Module to communicate with Tailwind garage door openers

https://github.com/frenck/python-gotailwind
This commit is contained in:
Fabian Affolter 2023-12-20 09:11:27 +01:00
parent b3f57a6ab4
commit 80bb54f003
2 changed files with 81 additions and 0 deletions

View file

@ -0,0 +1,79 @@
{ lib
, aiohttp
, aresponses
, awesomeversion
, backoff
, buildPythonPackage
, fetchFromGitHub
, mashumaro
, orjson
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, syrupy
, typer
, yarl
, zeroconf
}:
buildPythonPackage rec {
pname = "gotailwind";
version = "0.2.2";
pyproject = true;
disabled = pythonOlder "3.11";
src = fetchFromGitHub {
owner = "frenck";
repo = "python-gotailwind";
rev = "refs/tags/v${version}";
hash = "sha256-JtMBud3iON4xLc9dQdXniv51EBqs7zkat8cYm3q0uEE=";
};
postPatch = ''
# Upstream doesn't set a version for the pyproject.toml
substituteInPlace pyproject.toml \
--replace "0.0.0" "${version}" \
--replace "--cov" ""
'';
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
awesomeversion
backoff
mashumaro
orjson
yarl
zeroconf
];
passthru.optional-dependencies = {
cli = [
typer
];
};
nativeCheckInputs = [
aresponses
pytest-asyncio
pytestCheckHook
syrupy
];
pythonImportsCheck = [
"gotailwind"
];
meta = with lib; {
description = "Modul to communicate with Tailwind garage door openers";
homepage = "https://github.com/frenck/python-gotailwind";
changelog = "https://github.com/frenck/python-gotailwind/releases/tag/v$version";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -4751,6 +4751,8 @@ self: super: with self; {
googletrans = callPackage ../development/python-modules/googletrans { };
gotailwind = callPackage ../development/python-modules/gotailwind { };
gotenberg-client = callPackage ../development/python-modules/gotenberg-client { };
gorilla = callPackage ../development/python-modules/gorilla { };