python310Packages.w1thermsensor: add optional-dependencies

This commit is contained in:
Fabian Affolter 2023-10-16 18:30:09 +02:00
parent 9e7b0190b6
commit 26be63b1eb

View file

@ -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;