2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 19:42:00 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-04 19:49:58 +00:00
|
|
|
, isPy27
|
|
|
|
, sgmllib3k
|
2018-10-16 19:42:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "feedparser";
|
2020-11-29 14:04:28 +00:00
|
|
|
version = "6.0.2";
|
2020-12-04 19:49:58 +00:00
|
|
|
disabled = isPy27;
|
2018-10-16 19:42:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-29 14:04:28 +00:00
|
|
|
sha256 = "1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074";
|
2018-10-16 19:42:00 +01:00
|
|
|
};
|
|
|
|
|
2020-12-04 19:49:58 +00:00
|
|
|
propagatedBuildInputs = [ sgmllib3k ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
python -Wd tests/runtests.py
|
|
|
|
'';
|
2018-10-16 19:42:00 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-12-08 16:50:31 +00:00
|
|
|
homepage = "https://github.com/kurtmckee/feedparser";
|
2018-10-16 19:42:00 +01:00
|
|
|
description = "Universal feed parser";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|