792b51d22f
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
36 lines
693 B
Nix
36 lines
693 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pi1wire";
|
|
version = "0.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ushiboy";
|
|
repo = "pi1wire";
|
|
rev = "v${version}";
|
|
hash = "sha256-70w71heHWR5yArl+HuNAlzL2Yq/CL0iMNMiQw5qovls=";
|
|
};
|
|
|
|
checkInputs = [
|
|
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 ];
|
|
};
|
|
}
|