2021-01-25 09:26:54 +01:00
|
|
|
{ lib
|
2018-10-16 14:42:00 -04:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-23 23:14:29 +02:00
|
|
|
, pythonOlder
|
2020-12-04 11:49:58 -08:00
|
|
|
, sgmllib3k
|
2022-01-25 09:15:20 +01:00
|
|
|
, python
|
2018-10-16 14:42:00 -04:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "feedparser";
|
2021-06-23 23:14:29 +02:00
|
|
|
version = "6.0.8";
|
2022-01-25 09:15:20 +01:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-06-23 23:14:29 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-16 14:42:00 -04:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-23 23:14:29 +02:00
|
|
|
sha256 = "sha256-XOBBCgWrJIyMfPyjoOoiA5aO6f9EhgZzea9IJ6WflmE=";
|
2018-10-16 14:42:00 -04:00
|
|
|
};
|
|
|
|
|
2022-01-25 09:15:20 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
sgmllib3k
|
|
|
|
];
|
2020-12-04 11:49:58 -08:00
|
|
|
|
|
|
|
checkPhase = ''
|
2022-01-25 09:15:20 +01: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-04 11:49:58 -08:00
|
|
|
'';
|
2018-10-16 14:42:00 -04:00
|
|
|
|
2022-01-25 09:15:20 +01:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"feedparser"
|
|
|
|
];
|
2021-06-23 23:14:29 +02:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2019-12-08 17:50:31 +01:00
|
|
|
homepage = "https://github.com/kurtmckee/feedparser";
|
2018-10-16 14:42:00 -04:00
|
|
|
description = "Universal feed parser";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
}
|