c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
36 lines
703 B
Nix
36 lines
703 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pi1wire";
|
|
version = "0.3.0";
|
|
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ushiboy";
|
|
repo = "pi1wire";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-l/5w71QsAW4BvILOaLdUVvQ8xxUm1ZTzUESRFzUgtic=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|