at 22.05-pre 1.4 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, python 6, isPyPy 7, six 8, filetype 9, deprecation 10, dataclasses 11}: 12 13buildPythonPackage rec { 14 version = "0.9.6"; 15 pname = "eyeD3"; 16 disabled = isPyPy; 17 18 src = fetchPypi { 19 inherit pname version; 20 sha256 = "4b5064ec0fb3999294cca0020d4a27ffe4f29149e8292fdf7b2de9b9cabb7518"; 21 }; 22 23 # requires special test data: 24 # https://github.com/nicfit/eyeD3/blob/103198e265e3279384f35304e8218be6717c2976/Makefile#L97 25 doCheck = false; 26 27 propagatedBuildInputs = [ 28 six filetype deprecation 29 ] ++ lib.optional (pythonOlder "3.7") dataclasses; 30 31 postInstall = '' 32 for prog in "$out/bin/"*; do 33 wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" \ 34 --prefix PATH : ${python}/bin 35 done 36 ''; 37 38 meta = with lib; { 39 description = "A Python module and command line program for processing ID3 tags"; 40 homepage = "https://eyed3.nicfit.net/"; 41 license = licenses.gpl2; 42 maintainers = with maintainers; [ lovek323 ]; 43 platforms = platforms.unix; 44 longDescription = '' 45 eyeD3 is a Python module and command line program for processing ID3 46 tags. Information about mp3 files (i.e bit rate, sample frequency, play 47 time, etc.) is also provided. The formats supported are ID3 v1.0/v1.1 48 and v2.3/v2.4. 49 ''; 50 }; 51}