Unverified Commit f2500749 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #192833 from fabaff/pybravia

parents 74bf39d3 75954226
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ 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 ];
  };
}
+3 −1
Original line number Diff line number Diff line
@@ -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"
+2 −0
Original line number Diff line number Diff line
@@ -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 { };