python.pkgs.eyeD3: 0.7.8 -> 0.8.7
This commit is contained in:
parent
526ab5723a
commit
cd46a859b4
@ -1,23 +1,41 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchurl
|
, fetchPypi
|
||||||
|
, pythonAtLeast
|
||||||
|
, pythonOlder
|
||||||
, paver
|
, paver
|
||||||
, python
|
, python
|
||||||
, isPyPy
|
, isPyPy
|
||||||
|
, six
|
||||||
|
, pathlib
|
||||||
|
, python_magic
|
||||||
|
, isPy3k
|
||||||
|
, lib
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
version = "0.7.8";
|
version = "0.8.7";
|
||||||
pname = "eyeD3";
|
pname = "eyeD3";
|
||||||
disabled = isPyPy;
|
disabled = isPyPy;
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchPypi {
|
||||||
url = "http://eyed3.nicfit.net/releases/${pname}-${version}.tar.gz";
|
inherit pname version;
|
||||||
sha256 = "1nv7nhfn1d0qm7rgkzksbccgqisng8klf97np0nwaqwd5dbmdf86";
|
sha256 = "1fzqy6hkg73xvpapdjrdzr3r0fsamnplvjfl7dz7rzgzx2r4x4pg";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# https://github.com/nicfit/eyeD3/pull/284
|
||||||
|
postPatch = lib.optionalString (pythonAtLeast "3.4") ''
|
||||||
|
sed -ie '/pathlib/d' requirements/requirements.yml
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [ paver ];
|
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 = ''
|
postInstall = ''
|
||||||
for prog in "$out/bin/"*; do
|
for prog in "$out/bin/"*; do
|
||||||
wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" \
|
wrapProgram "$prog" --prefix PYTHONPATH : "$PYTHONPATH" \
|
||||||
|
Loading…
Reference in New Issue
Block a user