2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-12-09 12:39:15 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, isPy27
|
2022-01-26 04:04:25 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonAtLeast
|
2020-12-09 12:39:15 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sgmllib3k";
|
|
|
|
version = "1.0.0";
|
2022-01-26 04:04:25 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
disabled = isPy27;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hsoft";
|
|
|
|
repo = "sgmllib";
|
|
|
|
rev = "799964676f35349ca2dd04503e34c2b3ad522c0d";
|
|
|
|
sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
|
|
|
|
};
|
|
|
|
|
2022-01-26 04:04:25 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
"test_declaration_junk_chars"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"sgmllib"
|
|
|
|
];
|
|
|
|
|
2020-12-09 12:39:15 +00:00
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://pypi.org/project/sgmllib3k/";
|
|
|
|
description = "Python 3 port of sgmllib";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ lovesegfault ];
|
|
|
|
};
|
|
|
|
}
|