2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 19:42:00 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2021-06-23 22:14:29 +01:00
|
|
|
, pythonOlder
|
2020-12-04 19:49:58 +00:00
|
|
|
, sgmllib3k
|
2018-10-16 19:42:00 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "feedparser";
|
2021-06-23 22:14:29 +01:00
|
|
|
version = "6.0.8";
|
|
|
|
disabled = pythonOlder "3.6";
|
2018-10-16 19:42:00 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-06-23 22:14:29 +01:00
|
|
|
sha256 = "sha256-XOBBCgWrJIyMfPyjoOoiA5aO6f9EhgZzea9IJ6WflmE=";
|
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-06-23 22:14:29 +01:00
|
|
|
pythonImportsCheck = [ "feedparser" ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|