xeus-cling: fix improper linking with LLVM (#351130)
[NixPkgs.git] / pkgs / development / python-modules / wled / default.nix
blob196397ab7f1d934d26a89e250acffc874a9210b6
2   lib,
3   aiohttp,
4   aresponses,
5   awesomeversion,
6   backoff,
7   buildPythonPackage,
8   cachetools,
9   fetchFromGitHub,
10   mashumaro,
11   orjson,
12   poetry-core,
13   pytest-asyncio,
14   pytest-xdist,
15   pytestCheckHook,
16   pythonOlder,
17   typer,
18   yarl,
19   zeroconf,
22 buildPythonPackage rec {
23   pname = "wled";
24   version = "0.20.2";
25   pyproject = true;
27   disabled = pythonOlder "3.11";
29   src = fetchFromGitHub {
30     owner = "frenck";
31     repo = "python-wled";
32     rev = "refs/tags/v${version}";
33     hash = "sha256-7P/V83dGkfJJjZxZtiEwQXIY7CeBZ/fmvTdEjDirKj0=";
34   };
36   postPatch = ''
37     # Upstream doesn't set a version for the pyproject.toml
38     substituteInPlace pyproject.toml \
39       --replace-fail "0.0.0" "${version}" \
40       --replace-fail "--cov" ""
41   '';
43   build-system = [ poetry-core ];
45   dependencies = [
46     aiohttp
47     awesomeversion
48     backoff
49     cachetools
50     mashumaro
51     orjson
52     yarl
53   ];
55   optional-dependencies = {
56     cli = [
57       typer
58       zeroconf
59     ];
60   };
62   nativeCheckInputs = [
63     aresponses
64     pytest-asyncio
65     pytest-xdist
66     pytestCheckHook
67   ];
69   pythonImportsCheck = [ "wled" ];
71   meta = with lib; {
72     description = "Asynchronous Python client for WLED";
73     homepage = "https://github.com/frenck/python-wled";
74     changelog = "https://github.com/frenck/python-wled/releases/tag/v${version}";
75     license = licenses.mit;
76     maintainers = with maintainers; [ hexa ];
77   };