Merge pull request #192833 from fabaff/pybravia

This commit is contained in:
Martin Weinelt 2022-09-25 00:04:53 +02:00 committed by GitHub
commit f2500749f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 1 deletions

View file

@ -0,0 +1,44 @@
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, poetry-core
, pythonOlder
}:
buildPythonPackage rec {
pname = "pybravia";
version = "0.2.2";
format = "pyproject";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "Drafteed";
repo = pname;
rev = "v${version}";
hash = "sha256-jKDZ5MzWRgXYmtnYDyi232pKJX+oRGLmSsdlBiN5veQ=";
};
nativeBuildInputs = [
poetry-core
];
propagatedBuildInputs = [
aiohttp
];
# Module has no tests
doCheck = false;
pythonImportsCheck = [
"pybravia"
];
meta = with lib; {
description = "Library for remote control of Sony Bravia TVs 2013 and newer";
homepage = "https://github.com/Drafteed/pybravia";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -329,7 +329,8 @@
zeroconf
];
"braviatv" = ps: with ps; [
]; # missing inputs: pybravia
pybravia
];
"broadlink" = ps: with ps; [
broadlink
];
@ -3474,6 +3475,7 @@
"bmw_connected_drive"
"bond"
"bosch_shc"
"braviatv"
"broadlink"
"brother"
"brunt"

View file

@ -7467,6 +7467,8 @@ in {
pybotvac = callPackage ../development/python-modules/pybotvac { };
pybravia = callPackage ../development/python-modules/pybravia { };
pybrowserid = callPackage ../development/python-modules/pybrowserid { };
pybtex = callPackage ../development/python-modules/pybtex { };