2021-07-03 03:11:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
2022-09-30 11:47:45 +00:00
|
|
|
, setuptools
|
2021-07-03 03:11:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomusiccast";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "0.14.8";
|
2021-07-03 03:11:41 +00:00
|
|
|
format = "pyproject";
|
2022-11-27 09:42:12 +00:00
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigonotion";
|
|
|
|
repo = "aiomusiccast";
|
2022-06-26 10:26:21 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-V4xl2QY+pPEnJtx7dxSNj/aXqHvV9Z6uuWgbVHNyLjA=";
|
2021-07-03 03:11:41 +00:00
|
|
|
};
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"0.0.0"' '"${version}"'
|
|
|
|
'';
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
2022-09-30 11:47:45 +00:00
|
|
|
setuptools
|
2021-07-03 03:11:41 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# upstream has no tests
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aiomusiccast"
|
|
|
|
];
|
2021-07-03 03:11:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Companion library for musiccast devices intended for the Home Assistant integration";
|
|
|
|
homepage = "https://github.com/vigonotion/aiomusiccast";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/vigonotion/aiomusiccast/releases/tag/${version}";
|
2021-07-03 03:11:41 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dotlambda ];
|
|
|
|
};
|
|
|
|
}
|