python3Packages.pi1wire: init at 0.2.0

This commit is contained in:
Robert Schütz 2022-02-13 21:29:34 +00:00
parent 3b0050bec9
commit 3066715a5a
2 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,36 @@
{ 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 ];
};
}

View File

@ -6024,6 +6024,8 @@ in {
phx-class-registry = callPackage ../development/python-modules/phx-class-registry { };
pi1wire = callPackage ../development/python-modules/pi1wire { };
piccata = callPackage ../development/python-modules/piccata { };
pickleshare = callPackage ../development/python-modules/pickleshare { };