504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
41 lines
745 B
Nix
41 lines
745 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPy27
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sgmllib3k";
|
|
version = "1.0.0";
|
|
format = "setuptools";
|
|
|
|
disabled = isPy27;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-eGj7HIv6dkwaxWPTzzacOB0TJdNhJJM6cm8p/NqoEuk=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
"test_declaration_junk_chars"
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"sgmllib"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://pypi.org/project/sgmllib3k/";
|
|
description = "Python 3 port of sgmllib";
|
|
license = licenses.bsd2;
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
};
|
|
}
|