1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "pi1wire"; 9 version = "0.3.0"; 10 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "ushiboy"; 15 repo = "pi1wire"; 16 rev = "refs/tags/v${version}"; 17 hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic="; 18 }; 19 20 nativeCheckInputs = [ 21 pytestCheckHook 22 ]; 23 24 disabledTests = [ 25 "test_find_all_sensors" # flaky 26 ]; 27 28 pythonImportsCheck = [ "pi1wire" ]; 29 30 meta = with lib; { 31 description = "1Wire Sensor Library for Raspberry PI"; 32 homepage = "https://github.com/ushiboy/pi1wire"; 33 license = licenses.mit; 34 maintainers = with maintainers; [ dotlambda ]; 35 }; 36}