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