From 3ca354a905b39552bceac7596ac2d002164b1bed Mon Sep 17 00:00:00 2001 From: Ethan Carter Edwards Date: Mon, 29 Dec 2025 19:27:51 -0500 Subject: [PATCH] python3Packages.feedparser: clean up Signed-off-by: Ethan Carter Edwards --- .../python-modules/feedparser/default.nix | 26 ++++++++++++------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/feedparser/default.nix b/pkgs/development/python-modules/feedparser/default.nix index 3c0b6e075146..63b58214b3b4 100644 --- a/pkgs/development/python-modules/feedparser/default.nix +++ b/pkgs/development/python-modules/feedparser/default.nix @@ -1,7 +1,7 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, python, setuptools, sgmllib3k, @@ -12,22 +12,28 @@ buildPythonPackage rec { version = "6.0.12"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-ZPds6Qrj6O9dHt4PjTtQzia8znHdiuXoKxzS1KX5Qig="; - }; - - nativeBuildInputs = [ setuptools ]; - - propagatedBuildInputs = [ sgmllib3k ]; - __darwinAllowLocalNetworking = true; + src = fetchFromGitHub { + owner = "kurtmckee"; + repo = "feedparser"; + tag = "v${version}"; + hash = "sha256-ZLn4Naf0CQG04iXfVJVimrBQ7TGBEPcEPCF3XMjX/Mo="; + }; + + build-system = [ setuptools ]; + + dependencies = [ sgmllib3k ]; + checkPhase = '' + runHook preCheck + # Tests are failing # AssertionError: unexpected '~' char in declaration rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml ${python.interpreter} -Wd tests/runtests.py + + runHook postCheck ''; pythonImportsCheck = [ "feedparser" ];