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:
parent
b3f57a6ab4
commit
80bb54f003
2 changed files with 81 additions and 0 deletions
79
pkgs/development/python-modules/gotailwind/default.nix
Normal file
79
pkgs/development/python-modules/gotailwind/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue