python3Packages.sgmllib3k: disable failing test on Python 3.10

This commit is contained in:
Fabian Affolter
2022-01-24 23:37:43 +01:00
parent 8fc6055ce7
commit b137621f28
@@ -2,14 +2,17 @@
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytestCheckHook
, pythonAtLeast
}:
buildPythonPackage rec {
pname = "sgmllib3k";
version = "1.0.0";
format = "setuptools";
disabled = isPy27;
# fetchFromGitHub instead of fetchPypi to run tests.
src = fetchFromGitHub {
owner = "hsoft";
repo = "sgmllib";
@@ -17,6 +20,18 @@ buildPythonPackage rec {
sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
};
checkInputs = [
pytestCheckHook
];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
"test_declaration_junk_chars"
];
pythonImportsCheck = [
"sgmllib"
];
meta = with lib; {
homepage = "https://pypi.org/project/sgmllib3k/";
description = "Python 3 port of sgmllib";