1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 mutagen,
7 pytestCheckHook,
8 pythonOlder,
9 six,
10}:
11
12buildPythonPackage rec {
13 pname = "mediafile";
14 version = "0.12.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.6";
18
19 src = fetchFromGitHub {
20 owner = "beetbox";
21 repo = pname;
22 rev = "v${version}";
23 hash = "sha256-5HHfG1hCIbM/QSXgB61yHNNWJTsuyAh6CQJ7SZhZuvo=";
24 };
25
26 nativeBuildInputs = [ flit-core ];
27
28 propagatedBuildInputs = [
29 mutagen
30 six
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "mediafile" ];
36
37 meta = with lib; {
38 description = "Python interface to the metadata tags for many audio file formats";
39 homepage = "https://github.com/beetbox/mediafile";
40 license = licenses.mit;
41 maintainers = with maintainers; [ lovesegfault ];
42 };
43}