Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475{ lib, aiohttp, aioresponses, awesomeversion, backoff, buildPythonPackage, fetchFromGitHub, mashumaro, orjson, poetry-core, pytest-asyncio, pytest-cov-stub, pytestCheckHook, syrupy_5, typer, yarl, zeroconf,}:
buildPythonPackage rec { pname = "gotailwind"; version = "0.4.0"; pyproject = true;
src = fetchFromGitHub { owner = "frenck"; repo = "python-gotailwind"; tag = "v${version}"; hash = "sha256-sDQnweGVDyewvTPkRlmk9f7YMnUdPmvB9VrvegAC2B8="; };
postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace-fail "0.0.0" "${version}" '';
build-system = [ poetry-core ];
dependencies = [ aiohttp awesomeversion backoff mashumaro orjson yarl zeroconf ];
optional-dependencies = { cli = [ typer ]; };
nativeCheckInputs = [ aioresponses pytest-asyncio pytest-cov-stub pytestCheckHook syrupy_5 ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "gotailwind" ];
meta = { description = "Module to communicate with Tailwind garage door openers"; homepage = "https://github.com/frenck/python-gotailwind"; changelog = "https://github.com/frenck/python-gotailwind/releases/tag/${src.tag}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ fab ]; mainProgram = "tailwind"; };}