2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|