1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchFromGitHub
5, poetry-core
6, aiohttp
7}:
8
9buildPythonPackage rec {
10 pname = "aiomusiccast";
11 version = "0.14.0";
12
13 format = "pyproject";
14
15 disabled = pythonOlder "3.8";
16
17 src = fetchFromGitHub {
18 owner = "vigonotion";
19 repo = "aiomusiccast";
20 rev = version;
21 sha256 = "sha256-Zb2wwqKXtXlPvfmDNOlTHho9zHFFJOQxqoeqL//Z69M=";
22 };
23
24 nativeBuildInputs = [
25 poetry-core
26 ];
27
28 propagatedBuildInputs = [
29 aiohttp
30 ];
31
32 # upstream has no tests
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "aiomusiccast"
37 ];
38
39 meta = with lib; {
40 description = "Companion library for musiccast devices intended for the Home Assistant integration";
41 homepage = "https://github.com/vigonotion/aiomusiccast";
42 license = licenses.mit;
43 maintainers = with maintainers; [ dotlambda ];
44 };
45}