fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
43 lines
840 B
Nix
43 lines
840 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
mutagen,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
six,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "mediafile";
|
|
version = "0.12.0";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "beetbox";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo=";
|
|
};
|
|
|
|
nativeBuildInputs = [ flit-core ];
|
|
|
|
propagatedBuildInputs = [
|
|
mutagen
|
|
six
|
|
];
|
|
|
|
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";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
};
|
|
}
|