lol

Merge pull request #225226 from quentinmit/w1thermsensor

python3.pkgs.w1thermsensor: init at 2.0.0

authored by

Martin Weinelt and committed by
GitHub
bdb59943 6a3f91e9

+81
+9
maintainers/maintainer-list.nix
··· 12615 12615 githubId = 1024891; 12616 12616 name = "Jens Nolte"; 12617 12617 }; 12618 + quentin = { 12619 + email = "quentin@mit.edu"; 12620 + github = "quentinmit"; 12621 + githubId = 115761; 12622 + name = "Quentin Smith"; 12623 + keys = [{ 12624 + fingerprint = "1C71 A066 5400 AACD 142E B1A0 04EE 05A8 FCEF B697"; 12625 + }]; 12626 + }; 12618 12627 quentini = { 12619 12628 email = "quentini@airmail.cc"; 12620 12629 github = "QuentinI";
+70
pkgs/development/python-modules/w1thermsensor/default.nix
··· 1 + { lib 2 + , buildPythonPackage 3 + , fetchPypi 4 + , pkgs 5 + , setuptools 6 + , aiofiles 7 + , click 8 + , coverage 9 + , tomli 10 + , pytest 11 + , pytest-mock 12 + , pytest-asyncio 13 + , pytestCheckHook 14 + , pythonOlder 15 + }: 16 + buildPythonPackage rec { 17 + pname = "w1thermsensor"; 18 + version = "2.0.0"; 19 + format = "pyproject"; 20 + 21 + src = fetchPypi { 22 + inherit pname version; 23 + hash = "sha256-EcaEr4B8icbwZu2Ty3z8AAgglf74iZ5BLpLnSOZC2cE="; 24 + }; 25 + 26 + postPatch = '' 27 + sed -i 's/3\.5\.\*/3.5/' setup.py 28 + ''; 29 + 30 + nativeBuildInputs = [ 31 + setuptools 32 + ]; 33 + 34 + propagatedBuildInputs = [ 35 + aiofiles 36 + click 37 + ]; 38 + 39 + # Don't try to load the kernel module in tests. 40 + env.W1THERMSENSOR_NO_KERNEL_MODULE = 1; 41 + 42 + nativeCheckInputs = [ 43 + pytest-mock 44 + pytest-asyncio 45 + pytestCheckHook 46 + ] ++ lib.optionals (pythonOlder "3.11") [ 47 + tomli 48 + ]; 49 + 50 + # Tests for 2.0.0 currently fail on python3.11 51 + # https://github.com/timofurrer/w1thermsensor/issues/116 52 + doCheck = pythonOlder "3.11"; 53 + 54 + pythonImportsCheck = [ 55 + "w1thermsensor" 56 + ]; 57 + 58 + meta = with lib; { 59 + description = "Python interface to 1-Wire temperature sensors"; 60 + longDescription = '' 61 + A Python package and CLI tool to work with w1 temperature sensors like 62 + DS1822, DS18S20 & DS18B20 on the Raspberry Pi, Beagle Bone and other 63 + devices. 64 + ''; 65 + homepage = "https://github.com/timofurrer/w1thermsensor"; 66 + license = licenses.mit; 67 + maintainers = with maintainers; [ quentin ]; 68 + platforms = platforms.all; 69 + }; 70 + }
+2
pkgs/top-level/python-packages.nix
··· 12489 12489 12490 12490 vyper = callPackage ../development/compilers/vyper { }; 12491 12491 12492 + w1thermsensor = callPackage ../development/python-modules/w1thermsensor { }; 12493 + 12492 12494 w3lib = callPackage ../development/python-modules/w3lib { }; 12493 12495 12494 12496 wadllib = callPackage ../development/python-modules/wadllib { };