Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / wled / default.nix
blob7d90c554907cac23f4faea1b690c71c3f6a79011
1 { lib
2 , aiohttp
3 , awesomeversion
4 , backoff
5 , buildPythonPackage
6 , cachetools
7 , fetchFromGitHub
8 , poetry-core
9 , yarl
10 , aresponses
11 , pytest-asyncio
12 , pytest-xdist
13 , pytestCheckHook
14 , pythonOlder
17 buildPythonPackage rec {
18   pname = "wled";
19   version = "0.17.0";
20   format = "pyproject";
22   disabled = pythonOlder "3.11";
24   src = fetchFromGitHub {
25     owner = "frenck";
26     repo = "python-wled";
27     rev = "refs/tags/v${version}";
28     hash = "sha256-y32zynkVsn5vWw+BZ6ZRf9zemGOWJMN4yfNQZ0bRpos=";
29   };
31   postPatch = ''
32     # Upstream doesn't set a version for the pyproject.toml
33     substituteInPlace pyproject.toml \
34       --replace "0.0.0" "${version}" \
35       --replace "--cov" ""
36   '';
38   nativeBuildInputs = [
39     poetry-core
40   ];
42   propagatedBuildInputs = [
43     aiohttp
44     awesomeversion
45     backoff
46     cachetools
47     yarl
48   ];
50   nativeCheckInputs = [
51     aresponses
52     pytest-asyncio
53     pytest-xdist
54     pytestCheckHook
55   ];
57   pythonImportsCheck = [
58     "wled"
59   ];
61   meta = with lib; {
62     description = "Asynchronous Python client for WLED";
63     homepage = "https://github.com/frenck/python-wled";
64     changelog = "https://github.com/frenck/python-wled/releases/tag/v${version}";
65     license = licenses.mit;
66     maintainers = with maintainers; [ hexa ];
67   };