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