diff options
Diffstat (limited to 'pkgs/development/python-modules/wled/default.nix')
-rw-r--r-- | pkgs/development/python-modules/wled/default.nix | 58 |
1 files changed, 32 insertions, 26 deletions
diff --git a/pkgs/development/python-modules/wled/default.nix b/pkgs/development/python-modules/wled/default.nix index 7d90c554907ca..0836376c679da 100644 --- a/pkgs/development/python-modules/wled/default.nix +++ b/pkgs/development/python-modules/wled/default.nix @@ -1,23 +1,26 @@ -{ lib -, aiohttp -, awesomeversion -, backoff -, buildPythonPackage -, cachetools -, fetchFromGitHub -, poetry-core -, yarl -, aresponses -, pytest-asyncio -, pytest-xdist -, pytestCheckHook -, pythonOlder +{ + lib, + aiohttp, + aresponses, + awesomeversion, + backoff, + buildPythonPackage, + cachetools, + fetchFromGitHub, + poetry-core, + pytest-asyncio, + pytest-xdist, + pytestCheckHook, + pythonOlder, + typer, + yarl, + zeroconf, }: buildPythonPackage rec { pname = "wled"; - version = "0.17.0"; - format = "pyproject"; + version = "0.18.0"; + pyproject = true; disabled = pythonOlder "3.11"; @@ -25,21 +28,19 @@ buildPythonPackage rec { owner = "frenck"; repo = "python-wled"; rev = "refs/tags/v${version}"; - hash = "sha256-y32zynkVsn5vWw+BZ6ZRf9zemGOWJMN4yfNQZ0bRpos="; + hash = "sha256-0BJgbyDhCPFlHxlEry7Rh/j0nv3D3kRhIqCSW+Irhqk="; }; postPatch = '' # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ - --replace "0.0.0" "${version}" \ - --replace "--cov" "" + --replace-fail "0.0.0" "${version}" \ + --replace-fail "--cov" "" ''; - nativeBuildInputs = [ - poetry-core - ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp awesomeversion backoff @@ -47,6 +48,13 @@ buildPythonPackage rec { yarl ]; + passthru.optional-dependencies = { + cli = [ + typer + zeroconf + ]; + }; + nativeCheckInputs = [ aresponses pytest-asyncio @@ -54,9 +62,7 @@ buildPythonPackage rec { pytestCheckHook ]; - pythonImportsCheck = [ - "wled" - ]; + pythonImportsCheck = [ "wled" ]; meta = with lib; { description = "Asynchronous Python client for WLED"; |