nixpkgs/pkgs/development/python-modules/feedparser/default.nix
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

42 lines
940 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
python,
setuptools,
sgmllib3k,
}:
buildPythonPackage rec {
pname = "feedparser";
version = "6.0.12";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-ZPds6Qrj6O9dHt4PjTtQzia8znHdiuXoKxzS1KX5Qig=";
};
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 = {
description = "Universal feed parser";
homepage = "https://github.com/kurtmckee/feedparser";
changelog = "https://feedparser.readthedocs.io/en/latest/changelog.html";
license = lib.licenses.bsd2;
maintainers = [ ];
};
}