1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pybravia";
12 version = "0.3.4";
13 format = "pyproject";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "Drafteed";
19 repo = "pybravia";
20 tag = "v${version}";
21 hash = "sha256-1LfYEVclRneU3eD52kvzjLYyGdzYSWVDQ5EADOviglw=";
22 };
23
24 nativeBuildInputs = [ poetry-core ];
25
26 propagatedBuildInputs = [ aiohttp ];
27
28 # Module has no tests
29 doCheck = false;
30
31 pythonImportsCheck = [ "pybravia" ];
32
33 meta = with lib; {
34 description = "Library for remote control of Sony Bravia TVs 2013 and newer";
35 homepage = "https://github.com/Drafteed/pybravia";
36 changelog = "https://github.com/Drafteed/pybravia/releases/tag/v${version}";
37 license = licenses.mit;
38 maintainers = with maintainers; [ fab ];
39 };
40}