depot/third_party/nixpkgs/pkgs/development/python-modules/pi1wire/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

35 lines
709 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=";
};
nativeCheckInputs = [ 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 ];
};
}