Files
nixpkgs/pkgs/development/python-modules/feedparser/default.nix
Ethan Carter Edwards 3ca354a905 python3Packages.feedparser: clean up
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
2026-01-13 13:29:44 -05:00

49 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
python,
setuptools,
sgmllib3k,
}:
buildPythonPackage rec {
pname = "feedparser";
version = "6.0.12";
pyproject = true;
__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" ];
meta = {
description = "Universal feed parser";
homepage = "https://github.com/kurtmckee/feedparser";
changelog = "https://feedparser.readthedocs.io/en/latest/changelog.html";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}