2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2020-12-09 12:39:15 +00:00
|
|
|
, sgmllib3k
|
2022-01-26 04:04:25 +00:00
|
|
|
, python
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "feedparser";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "6.0.10";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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;
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-J9pIX0Y3znFjzeqxOoAxK5O30MG3db70pHYpoxELylE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sgmllib3k
|
|
|
|
];
|
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
|
|
|
|
2022-01-26 04:04:25 +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
|
|
|
homepage = "https://github.com/kurtmckee/feedparser";
|
|
|
|
description = "Universal feed parser";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|