Files
2026-04-30 20:50:59 +00:00

42 lines
904 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
filetype,
mutagen,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "mediafile";
version = "0.17.0";
pyproject = true;
src = fetchFromGitHub {
owner = "beetbox";
repo = "mediafile";
tag = "v${finalAttrs.version}";
hash = "sha256-FujuFkZH0wjZcd3wIpJw8mDvE/2/mew5tfxAyxA2RkI=";
};
build-system = [ poetry-core ];
dependencies = [
filetype
mutagen
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mediafile" ];
meta = {
description = "Python interface to the metadata tags for many audio file formats";
homepage = "https://github.com/beetbox/mediafile";
changelog = "https://github.com/beetbox/mediafile/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ lovesegfault ];
};
})