at 24.11-pre 1.3 kB view raw
1{ 2 lib, 3 aiohttp, 4 awesomeversion, 5 backoff, 6 buildPythonPackage, 7 cachetools, 8 fetchFromGitHub, 9 poetry-core, 10 yarl, 11 aresponses, 12 pytest-asyncio, 13 pytest-xdist, 14 pytestCheckHook, 15 pythonOlder, 16}: 17 18buildPythonPackage rec { 19 pname = "wled"; 20 version = "0.17.1"; 21 format = "pyproject"; 22 23 disabled = pythonOlder "3.11"; 24 25 src = fetchFromGitHub { 26 owner = "frenck"; 27 repo = "python-wled"; 28 rev = "refs/tags/v${version}"; 29 hash = "sha256-9682AbcADhd9m5XrYeDFiX+sJCCe+pnuvntJDnpzJ+U="; 30 }; 31 32 postPatch = '' 33 # Upstream doesn't set a version for the pyproject.toml 34 substituteInPlace pyproject.toml \ 35 --replace "0.0.0" "${version}" \ 36 --replace "--cov" "" 37 ''; 38 39 nativeBuildInputs = [ poetry-core ]; 40 41 propagatedBuildInputs = [ 42 aiohttp 43 awesomeversion 44 backoff 45 cachetools 46 yarl 47 ]; 48 49 nativeCheckInputs = [ 50 aresponses 51 pytest-asyncio 52 pytest-xdist 53 pytestCheckHook 54 ]; 55 56 pythonImportsCheck = [ "wled" ]; 57 58 meta = with lib; { 59 description = "Asynchronous Python client for WLED"; 60 homepage = "https://github.com/frenck/python-wled"; 61 changelog = "https://github.com/frenck/python-wled/releases/tag/v${version}"; 62 license = licenses.mit; 63 maintainers = with maintainers; [ hexa ]; 64 }; 65}