summary refs log tree commit diff
path: root/pkgs/development/python-modules/sgmllib3k/default.nix
blob: 05eb7da773951bbbaaa5db8503c7e0e2b8f7640b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
{ lib
, buildPythonPackage
, fetchFromGitHub
, isPy27
, pytestCheckHook
, pythonAtLeast
}:

buildPythonPackage rec {
  pname = "sgmllib3k";
  version = "1.0.0";
  format = "setuptools";

  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "hsoft";
    repo = "sgmllib";
    rev = "799964676f35349ca2dd04503e34c2b3ad522c0d";
    sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
  };

  nativeCheckInputs = [
    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";
    license = licenses.bsd2;
    maintainers = with maintainers; [ lovesegfault ];
  };
}