depot/third_party/nixpkgs/pkgs/development/python-modules/feedparser/default.nix
Default email 841d9c7fc1 Project import generated by Copybara.
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
2021-06-29 00:13:55 +01:00

32 lines
645 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, sgmllib3k
}:
buildPythonPackage rec {
pname = "feedparser";
version = "6.0.8";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-XOBBCgWrJIyMfPyjoOoiA5aO6f9EhgZzea9IJ6WflmE=";
};
propagatedBuildInputs = [ sgmllib3k ];
checkPhase = ''
python -Wd tests/runtests.py
'';
pythonImportsCheck = [ "feedparser" ];
meta = with lib; {
homepage = "https://github.com/kurtmckee/feedparser";
description = "Universal feed parser";
license = licenses.bsd2;
maintainers = with maintainers; [ domenkozar ];
};
}