567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
46 lines
988 B
Nix
46 lines
988 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
python,
|
|
pythonOlder,
|
|
setuptools,
|
|
sgmllib3k,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "feedparser";
|
|
version = "6.0.12";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|