From ec5081355bd44b512c77c26852fe62fa7402c301 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 4 Aug 2024 00:38:57 +0100 Subject: [PATCH] python3Packages.ffmpeg-python: patch out future dependency --- .../python-modules/ffmpeg-python/default.nix | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/ffmpeg-python/default.nix b/pkgs/development/python-modules/ffmpeg-python/default.nix index 48e4b6863408..ee9c19acbd31 100644 --- a/pkgs/development/python-modules/ffmpeg-python/default.nix +++ b/pkgs/development/python-modules/ffmpeg-python/default.nix @@ -3,8 +3,8 @@ buildPythonPackage, fetchFromGitHub, substituteAll, + fetchpatch2, setuptools, - future, pytestCheckHook, pytest-mock, ffmpeg_4, @@ -27,12 +27,17 @@ buildPythonPackage { src = ./ffmpeg-location.patch; ffmpeg = ffmpeg_4; }) + + # Remove dependency on `future` + # https://github.com/kkroening/ffmpeg-python/pull/795 + (fetchpatch2 { + url = "https://github.com/kkroening/ffmpeg-python/commit/dce459d39ace25f03edbabdad1735064787568f7.patch?full_index=1"; + hash = "sha256-ZptCFplL88d0p2s741ymHiwyDsDGVFylBJ8FTrZDGMc="; + }) ]; build-system = [ setuptools ]; - dependencies = [ future ]; - nativeCheckInputs = [ pytestCheckHook pytest-mock