about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytaglib/default.nix
blob: 4b88a6512105e6628c4c2411b30d71730cf592ae (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
{ lib
, buildPythonPackage
, fetchPypi
, taglib
, cython
, pytest
, glibcLocales
}:

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

  src = fetchPypi {
    inherit pname version;
    sha256 = "c3458e64cea61a7d4189f26c601e7bfd82053f3c02c2247cb8c430847927ef18";
  };

  buildInputs = [ taglib cython ];

  checkInputs = [ pytest glibcLocales ];

  checkPhase = ''
    LC_ALL=en_US.utf-8 pytest .
  '';

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