beets: Add patch to fix Python 3.7 compatibility
Since0f38d9669f
, the default Python version for Python 3 is now Python 3.7. It has been a while since beets had a new release, but the fix for Python 3.7 is already in master (and it's also rather small), so I decided to cherry-pick the commit as a patch. I've built the package along with its tests and they failed at first, but the errors were unrelated. So I disabled the tests for pylint, as they're failing right now. In addition I also needed to temporarily revert0d2f06ae3a
, which supposedly should fix issues with Python 2 but aparently breaks Python 3 support and during the beets tests we get a ModuleNotFoundError for the "_gi_gst" module. However I didn't further investigate why this happens, as I'm time constrained right now. But after disabling the pylint tests and the revert of the mentioned gst-python commit, the beets tests succeed. Signed-off-by: aszlig <aszlig@nix.build> Cc: @jtojnar, @lopsided98 (for introducing the gst-python change) Cc: @domenkozar, @pjones (other beets maintainers)
This commit is contained in:
parent
892407a9c6
commit
36efeac21a
1 changed files with 9 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
{ stdenv, fetchFromGitHub, writeScript, glibcLocales, diffPlugins
|
||||
, pythonPackages, imagemagick, gobjectIntrospection, gst_all_1
|
||||
, fetchpatch
|
||||
|
||||
# Attributes needed for tests of the external plugins
|
||||
, callPackage, beets
|
||||
|
@ -155,6 +156,14 @@ in pythonPackages.buildPythonApplication rec {
|
|||
patches = [
|
||||
./replaygain-default-bs1770gain.patch
|
||||
./keyfinder-default-bin.patch
|
||||
|
||||
# Fix Python 3.7 compatibility
|
||||
(fetchpatch {
|
||||
url = "https://github.com/beetbox/beets/commit/"
|
||||
+ "15d44f02a391764da1ce1f239caef819f08beed8.patch";
|
||||
sha256 = "12rjb4959nvnrm3fvvki7chxjkipa0cy8i0yi132xrcn8141dnpm";
|
||||
excludes = [ "docs/changelog.rst" ];
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
|
|
Loading…
Reference in a new issue