2021-06-30 15:49:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomusiccast";
|
2021-12-04 10:23:04 +00:00
|
|
|
version = "0.14.2";
|
2021-06-30 15:49:33 +01:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigonotion";
|
|
|
|
repo = "aiomusiccast";
|
|
|
|
rev = version;
|
2021-12-04 10:23:04 +00:00
|
|
|
sha256 = "sha256-5xIz36FgNwcaesmkYp3EWTxCe/8RaUJOJW9dqK+eang=";
|
2021-06-30 15:49:33 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-25 05:36:23 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiomusiccast"
|
|
|
|
];
|
2021-06-30 15:49:33 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Companion library for musiccast devices intended for the Home Assistant integration";
|
|
|
|
homepage = "https://github.com/vigonotion/aiomusiccast";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|