Files
nixpkgs/pkgs/development/python-modules/mediafile/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
918 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
filetype,
mutagen,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "mediafile";
version = "0.13.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "beetbox";
repo = "mediafile";
tag = "v${version}";
hash = "sha256-Knp91nVPFkE2qYSZoWcOsMBNY+OBfWCPPNn+T1L8v0o=";
};
build-system = [ flit-core ];
dependencies = [
filetype
mutagen
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "mediafile" ];
meta = with lib; {
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/${src.tag}";
license = licenses.mit;
maintainers = with maintainers; [ lovesegfault ];
};
}