python.pkgs.eyeD3: 0.7.8 -> 0.8.7

This commit is contained in:
Jörg Thalheim 2018-11-18 00:14:18 +00:00
parent 526ab5723a
commit cd46a859b4
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

@ -1,23 +1,41 @@
{ stdenv
, buildPythonPackage
, fetchurl
, fetchPypi
, pythonAtLeast
, pythonOlder
, paver
, python
, isPyPy
, six
, pathlib
, python_magic
, isPy3k
, lib
}:
buildPythonPackage rec {
version = "0.7.8";
version = "0.8.7";
pname = "eyeD3";
disabled = isPyPy;
src = fetchurl {
url = "http://eyed3.nicfit.net/releases/${pname}-${version}.tar.gz";
sha256 = "1nv7nhfn1d0qm7rgkzksbccgqisng8klf97np0nwaqwd5dbmdf86";
src = fetchPypi {
inherit pname version;
sha256 = "1fzqy6hkg73xvpapdjrdzr3r0fsamnplvjfl7dz7rzgzx2r4x4pg";
};
# https://github.com/nicfit/eyeD3/pull/284
postPatch = lib.optionalString (pythonAtLeast "3.4") ''
sed -ie '/pathlib/d' requirements/requirements.yml
'';
buildInputs = [ paver ];
# requires special test data:
# https://github.com/nicfit/eyeD3/blob/103198e265e3279384f35304e8218be6717c2976/Makefile#L97
doCheck = false;
propagatedBuildInputs = [ six python_magic ] ++ lib.optional (pythonOlder "3.4") pathlib;
postInstall = ''
for prog in "$out/bin/"*; do
wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" \