python312Packages.pydub: add patch to fix test assertions

This commit is contained in:
Fabian Affolter
2024-02-29 12:31:10 +01:00
parent 95853731b2
commit c1a61df741
2 changed files with 12 additions and 2 deletions
@@ -1,11 +1,11 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, fetchpatch
, ffmpeg-full
, pytestCheckHook
, setuptools
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
@@ -22,6 +22,15 @@ buildPythonPackage rec {
hash = "sha256-FTEMT47wPXK5i4ZGjTVAhI/NjJio3F2dbBZzYzClU3c=";
};
patches = [
# Fix test assertions, https://github.com/jiaaro/pydub/pull/769
(fetchpatch {
name = "fix-assertions.patch";
url = "https://github.com/jiaaro/pydub/commit/66c1bf7813ae8621a71484fdcdf609734c0d8efd.patch";
hash = "sha256-3OIzvTgGK3r4/s5y7izHvouB4uJEmjO6cgKvegtTf7A=";
})
];
nativeBuildInputs = [
setuptools
];
@@ -72,6 +72,7 @@ buildPythonPackage rec {
changelog = "https://github.com/dotX12/ShazamIO/releases/tag/${src.rev}";
license = licenses.mit;
maintainers = with maintainers; [ figsoda ];
# https://github.com/shazamio/ShazamIO/issues/80
broken = versionAtLeast pydantic.version "2";
};
}