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.16";
16
17 format = "pyproject";
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchFromGitHub {
22 owner = "rytilahti";
23 repo = "python-songpal";
24 rev = "refs/tags/release/${version}";
25 hash = "sha256-wHyq63RG0lhzG33ssWyvzLjc7s1OqquXMN26N2MBHU8=";
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 changelog = "https://github.com/rytilahti/python-songpal/blob/release/${version}/CHANGELOG.md";
49 license = licenses.gpl3Only;
50 maintainers = with maintainers; [ dotlambda ];
51 };
52}