mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
32 lines
601 B
Nix
32 lines
601 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, sgmllib3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "feedparser";
|
|
version = "6.0.2";
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "1b00a105425f492f3954fd346e5b524ca9cef3a4bbf95b8809470e9857aa1074";
|
|
};
|
|
|
|
propagatedBuildInputs = [ sgmllib3k ];
|
|
|
|
checkPhase = ''
|
|
python -Wd tests/runtests.py
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/kurtmckee/feedparser";
|
|
description = "Universal feed parser";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ domenkozar ];
|
|
};
|
|
|
|
}
|