2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pi1wire";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "0.3.0";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ushiboy";
|
|
|
|
repo = "pi1wire";
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-02-20 05:27:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
"test_find_all_sensors" # flaky
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pi1wire" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "1Wire Sensor Library for Raspberry PI";
|
|
|
|
homepage = "https://github.com/ushiboy/pi1wire";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|