Merge pull request #207525 from JamieMagee/btsmarthub_devicelist

This commit is contained in:
Martin Weinelt 2022-12-24 13:36:05 +01:00 committed by GitHub
commit 24d2eef2ac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 48 additions and 1 deletions

View File

@ -0,0 +1,44 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
requests,
responses,
}:
buildPythonPackage rec {
pname = "btsmarthub_devicelist";
version = "0.2.3";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jxwolstenholme";
repo = "btsmarthub_devicelist";
rev = "${version}";
hash = "sha256-7ncxCpY+A2SuSFa3k21QchrmFs1dPRUMb1r1z/laa6M=";
};
propagatedBuildInputs = [
requests
];
checkInputs = [
responses
requests
pytestCheckHook
];
disabledTests = [
"test_btsmarthub2_detection_neither_router_present"
];
meta = with lib; {
description = "Retrieve a list of devices from a bt smarthub or bt smarthub 2 on a local network";
homepage = "https://github.com/jxwolstenholme/btsmarthub_devicelist";
license = licenses.mit;
maintainers = with maintainers; [jamiemagee];
};
}

View File

@ -429,7 +429,8 @@
"bt_home_hub_5" = ps: with ps; [
]; # missing inputs: bthomehub5-devicelist
"bt_smarthub" = ps: with ps; [
]; # missing inputs: btsmarthub_devicelist
btsmarthub_devicelist
];
"bthome" = ps: with ps; [
aiohttp-cors
bleak-retry-connector

View File

@ -1443,6 +1443,8 @@ self: super: with self; {
btrfsutil = callPackage ../development/python-modules/btrfsutil { };
btsmarthub_devicelist = callPackage ../development/python-modules/btsmarthub_devicelist { };
btsocket = callPackage ../development/python-modules/btsocket { };
bucketstore = callPackage ../development/python-modules/bucketstore { };