about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytaglib/default.nix
blob: bf17988e758c6996a129d166971e2fe9742c2d20 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib
, buildPythonPackage
, fetchFromGitHub
, taglib
, cython
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pytaglib";
  version = "1.4.6";

  src = fetchFromGitHub {
    owner = "supermihi";
    repo = pname;
    rev = "v${version}";
    sha256 = "sha256-UAWXR1MCxEB48n7oQE+L545F+emlU3HErzLX6YTRteg=";
  };

  buildInputs = [
    cython
    taglib
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "taglib" ];

  meta = with lib; {
    description = "Python bindings for the Taglib audio metadata library";
    homepage = "https://github.com/supermihi/pytaglib";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ mrkkrp ];
  };
}