Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / feedparser / default.nix
blob0367e1e8a1063875c0929f91414897013ee63cdf
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , python
5 , pythonOlder
6 , setuptools
7 , sgmllib3k
8 }:
10 buildPythonPackage rec {
11   pname = "feedparser";
12   version = "6.0.11";
13   pyproject = true;
15   disabled = pythonOlder "3.6";
17   src = fetchPypi {
18     inherit pname version;
19     hash = "sha256-ydBAe2TG8qBl0OuyksKzXAEFDMDcM3V0Yaqr3ExBhNU=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   propagatedBuildInputs = [
27     sgmllib3k
28   ];
30   __darwinAllowLocalNetworking = true;
32   checkPhase = ''
33     # Tests are failing
34     # AssertionError: unexpected '~' char in declaration
35     rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
36     ${python.interpreter} -Wd tests/runtests.py
37   '';
39   pythonImportsCheck = [
40     "feedparser"
41   ];
43   meta = with lib; {
44     description = "Universal feed parser";
45     homepage = "https://github.com/kurtmckee/feedparser";
46     changelog = "https://feedparser.readthedocs.io/en/latest/changelog.html";
47     license = licenses.bsd2;
48     maintainers = with maintainers; [ domenkozar ];
49   };