From 2eb666ab153b187e4d2083711cd2759f90b7d044 Mon Sep 17 00:00:00 2001 From: virinci <104734512+virinci@users.noreply.github.com> Date: Thu, 12 Oct 2023 07:27:37 +0530 Subject: [PATCH] anki: fix 'distutils' not found --- srcpkgs/anki/patches/fix_distutils_not_found.patch | 8 ++++++++ srcpkgs/anki/template | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/anki/patches/fix_distutils_not_found.patch diff --git a/srcpkgs/anki/patches/fix_distutils_not_found.patch b/srcpkgs/anki/patches/fix_distutils_not_found.patch new file mode 100644 index 00000000000..555c89bbf76 --- /dev/null +++ b/srcpkgs/anki/patches/fix_distutils_not_found.patch @@ -0,0 +1,8 @@ +--- a/anki/mpv.py ++++ b/anki/mpv.py +@@ -39 +39 @@ import inspect +-from distutils.spawn import find_executable # pylint: disable=import-error,no-name-in-module ++from shutil import which +@@ -68 +68 @@ class MPVBase: +- executable = find_executable("mpv") ++ executable = which("mpv") diff --git a/srcpkgs/anki/template b/srcpkgs/anki/template index ead0f33a1df..97ad67d6001 100644 --- a/srcpkgs/anki/template +++ b/srcpkgs/anki/template @@ -1,7 +1,7 @@ # Template file for 'anki' pkgname=anki version=2.1.15 -revision=6 +revision=7 build_style=gnu-makefile depends="python3-PyQt5-webengine python3-requests python3-SQLAlchemy python3-PyAudio python3-mpv python3-Markdown python3-send2trash