1{ lib, buildPythonPackage, fetchPypi, pythonOlder
2, attrs
3, bidict
4, bitstruct
5, more-itertools
6, pprintpp
7, tbm-utils
8}:
9
10buildPythonPackage rec {
11 pname = "audio-metadata";
12 version = "0.11.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "9e7ba79d49cf048a911d5f7d55bb2715c10be5c127fe5db0987c5fe1aa7335eb";
17 };
18
19 postPatch = ''
20 substituteInPlace setup.py \
21 --replace "bidict>=0.17,<0.18" "bidict" \
22 --replace "more-itertools>=4.0,<8.0" "more-itertools" \
23 --replace "pendulum>=2.0,<=3.0,!=2.0.5,!=2.1.0" "pendulum>=2.0,<=3.0"
24 '';
25
26 propagatedBuildInputs = [
27 attrs
28 bidict
29 bitstruct
30 more-itertools
31 pprintpp
32 tbm-utils
33 ];
34
35 # No tests
36 doCheck = false;
37
38 disabled = pythonOlder "3.6";
39
40 meta = with lib; {
41 homepage = "https://github.com/thebigmunch/audio-metadata";
42 description = "A library for reading and, in the future, writing metadata from audio files";
43 license = licenses.mit;
44 maintainers = with maintainers; [ jakewaksbaum ];
45 };
46}