Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 47 lines 831 B view raw
1{ lib 2, buildPythonPackage 3, pythonOlder 4, fetchFromGitHub 5, aiohttp 6, backoff 7, packaging 8, yarl 9, aresponses 10, pytest-asyncio 11, pytestCheckHook 12}: 13 14buildPythonPackage rec { 15 pname = "wled"; 16 version = "0.4.4"; 17 disabled = pythonOlder "3.7"; 18 19 src = fetchFromGitHub { 20 owner = "frenck"; 21 repo = "python-wled"; 22 rev = "v${version}"; 23 sha256 = "1adh23v4c9kia3ddqdq0brksd5rhgh4ff7l5hil8klx4dmkrjfz3"; 24 }; 25 26 propagatedBuildInputs = [ 27 aiohttp 28 backoff 29 packaging 30 yarl 31 ]; 32 33 checkInputs = [ 34 aresponses 35 pytest-asyncio 36 pytestCheckHook 37 ]; 38 39 pythonImportsCheck = [ "wled" ]; 40 41 meta = with lib; { 42 description = "Asynchronous Python client for WLED"; 43 homepage = "https://github.com/frenck/python-wled"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ hexa ]; 46 }; 47}