python3Packages.feedparser: clean up
Signed-off-by: Ethan Carter Edwards <ethan@ethancedwards.com>
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
python,
|
||||
setuptools,
|
||||
sgmllib3k,
|
||||
@@ -12,22 +12,28 @@ buildPythonPackage rec {
|
||||
version = "6.0.12";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ZPds6Qrj6O9dHt4PjTtQzia8znHdiuXoKxzS1KX5Qig=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ setuptools ];
|
||||
|
||||
propagatedBuildInputs = [ sgmllib3k ];
|
||||
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "kurtmckee";
|
||||
repo = "feedparser";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-ZLn4Naf0CQG04iXfVJVimrBQ7TGBEPcEPCF3XMjX/Mo=";
|
||||
};
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [ sgmllib3k ];
|
||||
|
||||
checkPhase = ''
|
||||
runHook preCheck
|
||||
|
||||
# Tests are failing
|
||||
# AssertionError: unexpected '~' char in declaration
|
||||
rm tests/wellformed/sanitize/xml_declaration_unexpected_character.xml
|
||||
${python.interpreter} -Wd tests/runtests.py
|
||||
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "feedparser" ];
|
||||
|
||||
Reference in New Issue
Block a user