2018-10-15 20:34:55 +01:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
2018-11-18 00:14:18 +00:00
|
|
|
, fetchPypi
|
|
|
|
, pythonOlder
|
2018-10-15 20:34:55 +01:00
|
|
|
, python
|
|
|
|
, isPyPy
|
2018-11-18 00:14:18 +00:00
|
|
|
, six
|
|
|
|
, lib
|
2020-06-19 09:06:37 +01:00
|
|
|
, filetype
|
|
|
|
, deprecation
|
|
|
|
, dataclasses
|
2018-10-15 20:34:55 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-12-31 22:51:06 +00:00
|
|
|
version = "0.9.6";
|
2018-10-15 20:34:55 +01:00
|
|
|
pname = "eyeD3";
|
|
|
|
disabled = isPyPy;
|
|
|
|
|
2018-11-18 00:14:18 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-12-31 22:51:06 +00:00
|
|
|
sha256 = "4b5064ec0fb3999294cca0020d4a27ffe4f29149e8292fdf7b2de9b9cabb7518";
|
2018-10-15 20:34:55 +01:00
|
|
|
};
|
|
|
|
|
2018-11-18 00:14:18 +00:00
|
|
|
# requires special test data:
|
|
|
|
# https://github.com/nicfit/eyeD3/blob/103198e265e3279384f35304e8218be6717c2976/Makefile#L97
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-19 09:06:37 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
six filetype deprecation
|
|
|
|
] ++ lib.optional (pythonOlder "3.7") dataclasses;
|
2018-11-18 00:14:18 +00:00
|
|
|
|
2018-10-15 20:34:55 +01:00
|
|
|
postInstall = ''
|
|
|
|
for prog in "$out/bin/"*; do
|
|
|
|
wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" \
|
|
|
|
--prefix PATH : ${python}/bin
|
|
|
|
done
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-15 20:34:55 +01:00
|
|
|
description = "A Python module and command line program for processing ID3 tags";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://eyed3.nicfit.net/";
|
2018-10-15 20:34:55 +01:00
|
|
|
license = licenses.gpl2;
|
|
|
|
maintainers = with maintainers; [ lovek323 ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
longDescription = ''
|
|
|
|
eyeD3 is a Python module and command line program for processing ID3
|
|
|
|
tags. Information about mp3 files (i.e bit rate, sample frequency, play
|
|
|
|
time, etc.) is also provided. The formats supported are ID3 v1.0/v1.1
|
|
|
|
and v2.3/v2.4.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|