1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 fetchFromGitHub,
6 poetry-core,
7 aiohttp,
8 async-upnp-client,
9 attrs,
10 click,
11}:
12
13buildPythonPackage rec {
14 pname = "python-songpal";
15 version = "0.16.2";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchFromGitHub {
21 owner = "rytilahti";
22 repo = "python-songpal";
23 tag = "release/${version}";
24 hash = "sha256-PYw6xlUtBrxl+YeVO/2Njt5LYWEprzGPVNk1Mlr83HM=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 aiohttp
31 async-upnp-client
32 attrs
33 click
34 ];
35
36 # no tests implemented
37 doCheck = false;
38
39 pythonImportsCheck = [ "songpal" ];
40
41 meta = with lib; {
42 description = "Python library for interfacing with Sony's Songpal devices";
43 mainProgram = "songpal";
44 homepage = "https://github.com/rytilahti/python-songpal";
45 changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
46 license = licenses.gpl3Only;
47 maintainers = with maintainers; [ dotlambda ];
48 };
49}