2021-01-05 16:14:17 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2019-01-10 18:10:39 +01:00
|
|
|
, attrs
|
|
|
|
, bidict
|
|
|
|
, bitstruct
|
|
|
|
, more-itertools
|
|
|
|
, pprintpp
|
2019-10-27 15:54:05 +01:00
|
|
|
, tbm-utils
|
2019-01-10 18:10:39 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "audio-metadata";
|
2020-06-06 08:46:57 +02:00
|
|
|
version = "0.11.1";
|
2019-01-10 18:10:39 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 08:46:57 +02:00
|
|
|
sha256 = "9e7ba79d49cf048a911d5f7d55bb2715c10be5c127fe5db0987c5fe1aa7335eb";
|
2019-01-10 18:10:39 +01:00
|
|
|
};
|
|
|
|
|
2019-03-15 19:44:08 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
2021-01-05 16:14:17 +01:00
|
|
|
--replace "'attrs>=18.2,<19.4'" "'attrs'"
|
2019-03-15 19:44:08 +01:00
|
|
|
'';
|
|
|
|
|
2019-01-10 18:10:39 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
attrs
|
|
|
|
bidict
|
|
|
|
bitstruct
|
|
|
|
more-itertools
|
|
|
|
pprintpp
|
2019-10-27 15:54:05 +01:00
|
|
|
tbm-utils
|
2019-01-10 18:10:39 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
# No tests
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/thebigmunch/audio-metadata";
|
2019-01-10 18:10:39 +01:00
|
|
|
description = "A library for reading and, in the future, writing metadata from audio files";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jakewaksbaum ];
|
|
|
|
};
|
|
|
|
}
|