Skip to content

Commit

Permalink
eyeD3: fix dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jun 19, 2020
1 parent 343594f commit ab2c7a2
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions pkgs/development/python-modules/eyed3/default.nix
@@ -1,15 +1,14 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, pythonOlder
, paver
, python
, isPyPy
, six
, pathlib
, python_magic
, lib
, filetype
, deprecation
, dataclasses
}:

buildPythonPackage rec {
Expand All @@ -22,18 +21,13 @@ buildPythonPackage rec {
sha256 = "faf5806197f2093e82c2830d41f2378f07b3a9da07a16fafb14fc6fbdebac50a";
};

# 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;
propagatedBuildInputs = [
six filetype deprecation
] ++ lib.optional (pythonOlder "3.7") dataclasses;

postInstall = ''
for prog in "$out/bin/"*; do
Expand All @@ -55,5 +49,4 @@ buildPythonPackage rec {
and v2.3/v2.4.
'';
};

}

0 comments on commit ab2c7a2

Please sign in to comment.