1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, poetry-core
6, aiohttp
7, async-upnp-client
8, attrs
9, click
10, importlib-metadata
11}:
12
13buildPythonPackage rec {
14 pname = "python-songpal";
15 version = "0.15.1";
16
17 format = "pyproject";
18
19 disabled = pythonOlder "3.6";
20
21 src = fetchFromGitHub {
22 owner = "rytilahti";
23 repo = "python-songpal";
24 rev = "refs/tags/release/${version}";
25 hash = "sha256-FX5pDWjUhrhK5B7zEfvihN77pSNi2QltRu0xbkUdc/c=";
26 };
27
28 nativeBuildInputs = [
29 poetry-core
30 ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 async-upnp-client
35 attrs
36 click
37 importlib-metadata
38 ];
39
40 # no tests implemented
41 doCheck = false;
42
43 pythonImportsCheck = [ "songpal" ];
44
45 meta = with lib; {
46 description = "Python library for interfacing with Sony's Songpal devices";
47 homepage = "https://github.com/rytilahti/python-songpal";
48 license = licenses.gpl3Only;
49 maintainers = with maintainers; [ dotlambda ];
50 };
51}