python3Packages.aiosonos: migrate to finalAttrs
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
buildPythonPackage (finalAttrs: {
|
||||
pname = "aiosonos";
|
||||
version = "0.1.11";
|
||||
pyproject = true;
|
||||
@@ -18,13 +18,13 @@ buildPythonPackage rec {
|
||||
src = fetchFromGitHub {
|
||||
owner = "music-assistant";
|
||||
repo = "aiosonos";
|
||||
tag = version;
|
||||
tag = finalAttrs.version;
|
||||
hash = "sha256-Vd0m96BdFGYslAW/yHYdA4BUo6X8v1eYt6Z9ABinCJU=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${version}"'
|
||||
--replace-fail 'version = "0.0.0"' 'version = "${finalAttrs.version}"'
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
@@ -45,10 +45,10 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Async python library to communicate with Sonos devices ";
|
||||
description = "Async python library to communicate with Sonos devices";
|
||||
homepage = "https://github.com/music-assistant/aiosonos";
|
||||
changelog = "https://github.com/music-assistant/aiosonos/releases/tag/${version}";
|
||||
changelog = "https://github.com/music-assistant/aiosonos/releases/tag/${finalAttrs.src.tag}";
|
||||
license = [ lib.licenses.asl20 ];
|
||||
maintainers = [ lib.maintainers.autrimpo ];
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user