mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-10 15:23:43 +00:00
42 lines
904 B
Nix
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 ];
|
|
};
|
|
})
|