croc: 10.1.1 -> 10.1.3 (#364662)
[NixPkgs.git] / pkgs / development / python-modules / feedparser / default.nix
blob3d1bd3f4ee3ba5e88edf474490ecb035e8bf790f
2   lib,
3   buildPythonPackage,
4   fetchPypi,
5   python,
6   pythonOlder,
7   setuptools,
8   sgmllib3k,
9 }:
11 buildPythonPackage rec {
12   pname = "feedparser";
13   version = "6.0.11";
14   pyproject = true;
16   disabled = pythonOlder "3.6";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-ydBAe2TG8qBl0OuyksKzXAEFDMDcM3V0Yaqr3ExBhNU=";
21   };
23   nativeBuildInputs = [ setuptools ];
25   propagatedBuildInputs = [ sgmllib3k ];
27   __darwinAllowLocalNetworking = true;
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   '';
36   pythonImportsCheck = [ "feedparser" ];
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; [ domenkozar ];
44   };