rss2email: fix tests with html2text 2024.2.25

This commit is contained in:
Robert Schütz 2024-03-12 22:13:07 -07:00 committed by Weijia Wang
parent 97d976bb60
commit 58ea73f6a4

View file

@ -1,4 +1,9 @@
{ pythonPackages, fetchurl, lib, nixosTests }: { lib
, pythonPackages
, fetchPypi
, fetchpatch2
, nixosTests
}:
with pythonPackages; with pythonPackages;
@ -9,11 +14,19 @@ buildPythonApplication rec {
propagatedBuildInputs = [ feedparser html2text ]; propagatedBuildInputs = [ feedparser html2text ];
nativeCheckInputs = [ beautifulsoup4 ]; nativeCheckInputs = [ beautifulsoup4 ];
src = fetchurl { src = fetchPypi {
url = "mirror://pypi/r/rss2email/${pname}-${version}.tar.gz"; inherit pname version;
sha256 = "sha256-RwORS2PHquxBZLNKqCJtR5XX4SHqPCb/Fn+Y68dfI/g="; hash = "sha256-RwORS2PHquxBZLNKqCJtR5XX4SHqPCb/Fn+Y68dfI/g=";
}; };
patches = [
(fetchpatch2 {
name = "html2text-2024.2.25-compat.patch";
url = "https://github.com/rss2email/rss2email/commit/b5c0e78006c2db6929b5ff50e8529de58a00412a.patch";
hash = "sha256-edmsi3I0acx5iF9xoAS9deSexqW2UtWZR/L7CgeZs/M=";
})
];
outputs = [ "out" "man" "doc" ]; outputs = [ "out" "man" "doc" ];
postPatch = '' postPatch = ''