1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy27, 6 pytestCheckHook, 7 pythonAtLeast, 8}: 9 10buildPythonPackage rec { 11 pname = "sgmllib3k"; 12 version = "1.0.0"; 13 format = "setuptools"; 14 15 disabled = isPy27; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk="; 20 }; 21 22 nativeCheckInputs = [ pytestCheckHook ]; 23 24 disabledTests = lib.optionals (pythonAtLeast "3.10") [ "test_declaration_junk_chars" ]; 25 26 doCheck = false; 27 28 pythonImportsCheck = [ "sgmllib" ]; 29 30 meta = with lib; { 31 homepage = "https://pypi.org/project/sgmllib3k/"; 32 description = "Python 3 port of sgmllib"; 33 license = licenses.bsd2; 34 maintainers = with maintainers; [ lovesegfault ]; 35 }; 36}