17 buildPythonPackage rec {
18 pname = "w1thermsensor";
22 disabled = pythonOlder "3.7";
25 inherit pname version;
26 hash = "sha256-n7wK4N1mzZtUxtYu17qyuI4UjJh/59UGD0dvkOgcInA=";
30 sed -i 's/3\.5\.\*/3.5/' setup.py
37 propagatedBuildInputs = [
41 passthru.optional-dependencies = {
47 # Don't try to load the kernel module in tests.
48 env.W1THERMSENSOR_NO_KERNEL_MODULE = 1;
54 ] ++ lib.optionals (pythonOlder "3.11") [
56 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
58 pythonImportsCheck = [
63 description = "Python interface to 1-Wire temperature sensors";
64 mainProgram = "w1thermsensor";
66 A Python package and CLI tool to work with w1 temperature sensors like
67 DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other
70 homepage = "https://github.com/timofurrer/w1thermsensor";
71 changelog = "https://github.com/timofurrer/w1thermsensor/blob/v${version}/CHANGELOG.rst";
72 license = licenses.mit;
73 maintainers = with maintainers; [ quentin ];
74 platforms = platforms.all;