2019-01-10 17:10:39 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
|
|
|
, attrs
|
|
|
|
, bidict
|
|
|
|
, bitstruct
|
|
|
|
, more-itertools
|
|
|
|
, pprintpp
|
2019-10-27 14:54:05 +00:00
|
|
|
, tbm-utils
|
2019-01-10 17:10:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "audio-metadata";
|
2019-10-24 07:47:24 +01:00
|
|
|
version = "0.6.0";
|
2019-01-10 17:10:39 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-24 07:47:24 +01:00
|
|
|
sha256 = "7a0c060d05ac59a4ce841a485808fe8a6993fec554f96bee90e57e971c73a2a6";
|
2019-01-10 17:10:39 +00:00
|
|
|
};
|
|
|
|
|
2019-03-15 18:44:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "bidict>=0.17,<0.18" "bidict" \
|
2019-12-22 20:04:02 +00:00
|
|
|
--replace "more-itertools>=4.0,<8.0" "more-itertools"
|
2019-03-15 18:44:08 +00:00
|
|
|
'';
|
|
|
|
|
2019-01-10 17:10:39 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
bidict
|
|
|
|
bitstruct
|
|
|
|
more-itertools
|
|
|
|
pprintpp
|
2019-10-27 14:54:05 +00:00
|
|
|
tbm-utils
|
2019-01-10 17:10:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = https://github.com/thebigmunch/audio-metadata;
|
|
|
|
description = "A library for reading and, in the future, writing metadata from audio files";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|