1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, isPy27
5, pytestCheckHook
6, pythonAtLeast
7}:
8
9buildPythonPackage rec {
10 pname = "sgmllib3k";
11 version = "1.0.0";
12 format = "setuptools";
13
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "hsoft";
18 repo = "sgmllib";
19 rev = "799964676f35349ca2dd04503e34c2b3ad522c0d";
20 sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
21 };
22
23 nativeCheckInputs = [
24 pytestCheckHook
25 ];
26
27 disabledTests = lib.optionals (pythonAtLeast "3.10") [
28 "test_declaration_junk_chars"
29 ];
30
31 pythonImportsCheck = [
32 "sgmllib"
33 ];
34
35 meta = with lib; {
36 homepage = "https://pypi.org/project/sgmllib3k/";
37 description = "Python 3 port of sgmllib";
38 license = licenses.bsd2;
39 maintainers = with maintainers; [ lovesegfault ];
40 };
41}