Merge pull request #275588 from fabaff/gotailwind

python311Packages.gotailwind: init at 0.2.2
This commit is contained in:
Fabian Affolter 2023-12-21 09:08:10 +01:00 committed by GitHub
commit b8beeb1976
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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

@ -4757,6 +4757,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 { };