2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
python,
|
|
|
|
pythonOlder,
|
|
|
|
setuptools,
|
|
|
|
sgmllib3k,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "feedparser";
|
2024-01-02 11:29:13 +00:00
|
|
|
version = "6.0.11";
|
|
|
|
pyproject = true;
|
2022-01-26 04:04:25 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-01-02 11:29:13 +00:00
|
|
|
hash = "sha256-ydBAe2TG8qBl0OuyksKzXAEFDMDcM3V0Yaqr3ExBhNU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ sgmllib3k ];
|
2020-12-09 12:39:15 +00:00
|
|
|
|
2023-08-22 20:05:09 +00:00
|
|
|
__darwinAllowLocalNetworking = true;
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
checkPhase = ''
|
2022-01-26 04:04:25 +00:00
|
|
|
# Tests are failing
|
|
|
|
# AssertionError: unexpected '~' char in declaration
|
|
|
|
rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
|
|
|
|
${python.interpreter} -Wd tests/runtests.py
|
2020-12-09 12:39:15 +00:00
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "feedparser" ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Universal feed parser";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/kurtmckee/feedparser";
|
|
|
|
changelog = "https://feedparser.readthedocs.io/en/latest/changelog.html";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|