about summary refs log tree commit diff
path: root/pkgs/development/python-modules/music-tag/default.nix
blob: f997ca47253ced3573ead21a249e631f0630b2b6 (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
38
39
40
41
{ lib
, buildPythonPackage
, fetchPypi
, mutagen
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "music-tag";
  version = "0.4.3";
  format = "setuptools";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-Cqtubu2o3w9TFuwtIZC9dFYbfgNWKrCRzo1Wh828//Y=";
  };

  propagatedBuildInputs = [
    mutagen
  ];

  checkInputs = [
    pytestCheckHook
  ];

  pytestFlagsArray = [ "test" ];

  # Tests fail: ModuleNotFoundError: No module named '_test_common'
  doCheck = false;

  pythonImportsCheck = [
    "music_tag"
  ];

  meta = with lib; {
    description = "Simple interface to edit audio file metadata";
    homepage = "https://github.com/KristoforMaynard/music-tag";
    license = licenses.mit;
    maintainers = with maintainers; [ onny ];
  };
}