blob: 3d1bd3f4ee3ba5e88edf474490ecb035e8bf790f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchPypi,
python,
pythonOlder,
setuptools,
sgmllib3k,
}:
buildPythonPackage rec {
pname = "feedparser";
version = "6.0.11";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
hash = "sha256-ydBAe2TG8qBl0OuyksKzXAEFDMDcM3V0Yaqr3ExBhNU=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [ sgmllib3k ];
__darwinAllowLocalNetworking = true;
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; {
description = "Universal feed parser";
homepage = "https://github.com/kurtmckee/feedparser";
changelog = "https://feedparser.readthedocs.io/en/latest/changelog.html";
license = licenses.bsd2;
maintainers = with maintainers; [ domenkozar ];
};
}
|