@@ -0,0 +1,43 @@
1+{ lib
2+, buildPythonPackage
3+, pythonOlder
4+, fetchFromGitHub
5+, poetry-core
6+, aiohttp
7+}:
8+
9+buildPythonPackage rec {
10+ pname = "aiomusiccast";
11+ version = "0.8.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 = "1x55w2vhb5mgvlg19cs887xd7fg0cwnp6hb34vajp80q4yff9xk5";
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 = [ "aiomusiccast" ];
36+
37+ meta = with lib; {
38+ description = "Companion library for musiccast devices intended for the Home Assistant integration";
39+ homepage = "https://github.com/vigonotion/aiomusiccast";
40+ license = licenses.mit;
41+ maintainers = with maintainers; [ dotlambda ];
42+ };
43+}