mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
eyeD3: fix dependencies
This commit is contained in:
parent
343594f2bd
commit
ab2c7a29e7
@ -1,15 +1,14 @@
|
|||||||
{ stdenv
|
{ stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, pythonAtLeast
|
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, paver
|
|
||||||
, python
|
, python
|
||||||
, isPyPy
|
, isPyPy
|
||||||
, six
|
, six
|
||||||
, pathlib
|
|
||||||
, python_magic
|
|
||||||
, lib
|
, lib
|
||||||
|
, filetype
|
||||||
|
, deprecation
|
||||||
|
, dataclasses
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
@ -22,18 +21,13 @@ buildPythonPackage rec {
|
|||||||
sha256 = "faf5806197f2093e82c2830d41f2378f07b3a9da07a16fafb14fc6fbdebac50a";
|
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:
|
# requires special test data:
|
||||||
# https://github.com/nicfit/eyeD3/blob/103198e265e3279384f35304e8218be6717c2976/Makefile#L97
|
# https://github.com/nicfit/eyeD3/blob/103198e265e3279384f35304e8218be6717c2976/Makefile#L97
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
propagatedBuildInputs = [ six python_magic ] ++ lib.optional (pythonOlder "3.4") pathlib;
|
propagatedBuildInputs = [
|
||||||
|
six filetype deprecation
|
||||||
|
] ++ lib.optional (pythonOlder "3.7") dataclasses;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for prog in "$out/bin/"*; do
|
for prog in "$out/bin/"*; do
|
||||||
@ -55,5 +49,4 @@ buildPythonPackage rec {
|
|||||||
and v2.3/v2.4.
|
and v2.3/v2.4.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user