Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / gotailwind / default.nix
blobf1ae7880a2799632af43a9dbd6feba41d572aba4
1 { lib
2 , aiohttp
3 , aresponses
4 , awesomeversion
5 , backoff
6 , buildPythonPackage
7 , fetchFromGitHub
8 , mashumaro
9 , orjson
10 , poetry-core
11 , pytest-asyncio
12 , pytestCheckHook
13 , pythonOlder
14 , syrupy
15 , typer
16 , yarl
17 , zeroconf
20 buildPythonPackage rec {
21   pname = "gotailwind";
22   version = "0.2.2";
23   pyproject = true;
25   disabled = pythonOlder "3.11";
27   src = fetchFromGitHub {
28     owner = "frenck";
29     repo = "python-gotailwind";
30     rev = "refs/tags/v${version}";
31     hash = "sha256-JtMBud3iON4xLc9dQdXniv51EBqs7zkat8cYm3q0uEE=";
32   };
34   postPatch = ''
35     # Upstream doesn't set a version for the pyproject.toml
36     substituteInPlace pyproject.toml \
37       --replace "0.0.0" "${version}" \
38       --replace "--cov" ""
39   '';
41   nativeBuildInputs = [
42     poetry-core
43   ];
45   propagatedBuildInputs = [
46     aiohttp
47     awesomeversion
48     backoff
49     mashumaro
50     orjson
51     yarl
52     zeroconf
53   ];
55   passthru.optional-dependencies = {
56     cli = [
57       typer
58     ];
59   };
61   nativeCheckInputs = [
62     aresponses
63     pytest-asyncio
64     pytestCheckHook
65     syrupy
66   ];
68   pythonImportsCheck = [
69     "gotailwind"
70   ];
72   meta = with lib; {
73     description = "Modul to communicate with Tailwind garage door openers";
74     mainProgram = "tailwind";
75     homepage = "https://github.com/frenck/python-gotailwind";
76     changelog = "https://github.com/frenck/python-gotailwind/releases/tag/v$version";
77     license = licenses.mit;
78     maintainers = with maintainers; [ fab ];
79   };