Merge pull request #159906 from dotlambda/home-assistant-onewire

This commit is contained in:
Martin Weinelt
2022-02-13 23:37:39 +01:00
committed by GitHub
4 changed files with 70 additions and 1 deletions
@@ -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 ];
};
}
@@ -0,0 +1,28 @@
{ lib
, buildPythonPackage
, fetchPypi
}:
buildPythonPackage rec {
pname = "pyownet";
version = "0.10.0.post1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "4f2fa4471c2f806b35090bdc6c092305c6eded3ff3736f8b586d35bdb157de62";
};
# tests access network
doCheck = false;
pythonImportsCheck = [ "pyownet.protocol" ];
meta = with lib; {
description = "Python OWFS client library (owserver protocol)";
homepage = "https://github.com/miccoli/pyownet";
license = licenses.lgpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}
@@ -611,7 +611,7 @@
"onboarding" = ps: with ps; [ aiohttp-cors home-assistant-frontend pillow sqlalchemy ];
"oncue" = ps: with ps; [ aiooncue ];
"ondilo_ico" = ps: with ps; [ aiohttp-cors ondilo ];
"onewire" = ps: with ps; [ ]; # missing inputs: pi1wire pyownet
"onewire" = ps: with ps; [ pi1wire pyownet ];
"onkyo" = ps: with ps; [ onkyo-eiscp ];
"onvif" = ps: with ps; [ ha-ffmpeg ]; # missing inputs: WSDiscovery onvif-zeep-async
"open_meteo" = ps: with ps; [ open-meteo ];
@@ -1387,6 +1387,7 @@
"onboarding"
"oncue"
"ondilo_ico"
"onewire"
"open_meteo"
"openalpr_cloud"
"openalpr_local"
+4
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 { };
@@ -6135,6 +6137,8 @@ in {
pynx584 = callPackage ../development/python-modules/pynx584 { };
pyownet = callPackage ../development/python-modules/pyownet { };
pypoint = callPackage ../development/python-modules/pypoint { };
pypoolstation = callPackage ../development/python-modules/pypoolstation { };