1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, sgmllib3k
6, python
7}:
8
9buildPythonPackage rec {
10 pname = "feedparser";
11 version = "6.0.10";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-J9pIX0Y3znFjzeqxOoAxK5O30MG3db70pHYpoxELylE=";
19 };
20
21 propagatedBuildInputs = [
22 sgmllib3k
23 ];
24
25 checkPhase = ''
26 # Tests are failing
27 # AssertionError: unexpected '~' char in declaration
28 rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
29 ${python.interpreter} -Wd tests/runtests.py
30 '';
31
32 pythonImportsCheck = [
33 "feedparser"
34 ];
35
36 meta = with lib; {
37 homepage = "https://github.com/kurtmckee/feedparser";
38 description = "Universal feed parser";
39 license = licenses.bsd2;
40 maintainers = with maintainers; [ domenkozar ];
41 };
42}