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