2021-06-30 15:49:33 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchFromGitHub
|
|
|
|
, poetry-core
|
|
|
|
, aiohttp
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aiomusiccast";
|
2021-12-30 16:00:47 +00:00
|
|
|
version = "0.14.3";
|
2021-06-30 15:49:33 +01:00
|
|
|
|
|
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "vigonotion";
|
|
|
|
repo = "aiomusiccast";
|
|
|
|
rev = version;
|
2021-12-30 16:00:47 +00:00
|
|
|
hash = "sha256-ELdNxeU9dajWr4VeOyuvNrSi7B+ImVJM/BlZsw3tcKE=";
|
2021-06-30 15:49:33 +01:00
|
|
|
};
|
|
|
|
|
2022-02-08 17:01:20 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace pyproject.toml \
|
|
|
|
--replace '"0.0.0"' '"${version}"'
|
|
|
|
'';
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|