2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
flit-core,
|
|
|
|
mutagen,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
six,
|
2021-01-05 17:05:55 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "mediafile";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.12.0";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2021-01-05 17:05:55 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "beetbox";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo=";
|
2021-01-05 17:05:55 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
mutagen
|
|
|
|
six
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-12-19 01:06:50 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "mediafile" ];
|
2021-01-05 17:05:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-12-19 01:06:50 +00:00
|
|
|
description = "Python interface to the metadata tags for many audio file formats";
|
2021-01-05 17:05:55 +00:00
|
|
|
homepage = "https://github.com/beetbox/mediafile";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|