c348d5656e
Diff: https://github.com/vigonotion/aiomusiccast/compare/0.14.8...0.15.0 Changelog: https://github.com/vigonotion/aiomusiccast/releases/tag/0.15.0
45 lines
963 B
Nix
45 lines
963 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
aiohttp,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aiomusiccast";
|
|
version = "0.15.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vigonotion";
|
|
repo = "aiomusiccast";
|
|
tag = version;
|
|
hash = "sha256-oFA8i/cdDqOQ9Fq0VWd8eiOg8F1+MNxWanNqoao5+pM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace pyproject.toml \
|
|
--replace '"0.0.0"' '"${version}"'
|
|
'';
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
];
|
|
|
|
# upstream has no tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aiomusiccast" ];
|
|
|
|
meta = {
|
|
description = "Companion library for musiccast devices intended for the Home Assistant integration";
|
|
homepage = "https://github.com/vigonotion/aiomusiccast";
|
|
changelog = "https://github.com/vigonotion/aiomusiccast/releases/tag/${src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ dotlambda ];
|
|
};
|
|
}
|