1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 mashumaro,
7 orjson,
8 poetry-core,
9 pythonOlder,
10 yarl,
11}:
12
13buildPythonPackage rec {
14 pname = "aiostreammagic";
15 version = "2.11.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.11";
19
20 src = fetchFromGitHub {
21 owner = "noahhusby";
22 repo = "aiostreammagic";
23 tag = version;
24 hash = "sha256-8ahLB5F2JKpA4F21WWDFzrDxoOpIq+d1iXuCjQngGtc=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 aiohttp
31 mashumaro
32 orjson
33 yarl
34 ];
35
36 # Module has no tests
37 doCheck = false;
38
39 pythonImportsCheck = [ "aiostreammagic" ];
40
41 meta = {
42 description = "Module for interfacing with Cambridge Audio/Stream Magic compatible streamers";
43 homepage = "https://github.com/noahhusby/aiostreammagic";
44 changelog = "https://github.com/noahhusby/aiostreammagic/releases/tag/${version}";
45 license = lib.licenses.mit;
46 maintainers = with lib.maintainers; [ fab ];
47 };
48}