mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 19:54:05 +00:00
43 lines
862 B
Nix
43 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, sgmllib3k
|
|
, python
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "feedparser";
|
|
version = "6.0.8";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-XOBBCgWrJIyMfPyjoOoiA5aO6f9EhgZzea9IJ6WflmE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
sgmllib3k
|
|
];
|
|
|
|
checkPhase = ''
|
|
# Tests are failing
|
|
# AssertionError: unexpected '~' char in declaration
|
|
rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
|
|
${python.interpreter} -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 ];
|
|
};
|
|
}
|