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