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