From 26be63b1eba01efd173f8caf2f4fda946a1fbaec Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 16 Oct 2023 18:30:09 +0200 Subject: [PATCH] python310Packages.w1thermsensor: add optional-dependencies --- pkgs/development/python-modules/w1thermsensor/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/w1thermsensor/default.nix b/pkgs/development/python-modules/w1thermsensor/default.nix index a60c545a2536..58158f77282b 100644 --- a/pkgs/development/python-modules/w1thermsensor/default.nix +++ b/pkgs/development/python-modules/w1thermsensor/default.nix @@ -35,10 +35,15 @@ buildPythonPackage rec { ]; propagatedBuildInputs = [ - aiofiles click ]; + passthru.optional-dependencies = { + async = [ + aiofiles + ]; + }; + # Don't try to load the kernel module in tests. env.W1THERMSENSOR_NO_KERNEL_MODULE = 1;