Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / sgmllib3k / default.nix
blob05eb7da773951bbbaaa5db8503c7e0e2b8f7640b
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , isPy27
5 , pytestCheckHook
6 , pythonAtLeast
7 }:
9 buildPythonPackage rec {
10   pname = "sgmllib3k";
11   version = "1.0.0";
12   format = "setuptools";
14   disabled = isPy27;
16   src = fetchFromGitHub {
17     owner = "hsoft";
18     repo = "sgmllib";
19     rev = "799964676f35349ca2dd04503e34c2b3ad522c0d";
20     sha256 = "0bzf6pv85dzfxfysm6zbj8m40hp0xzr9h8qlk4hp3nmy88rznqvr";
21   };
23   nativeCheckInputs = [
24     pytestCheckHook
25   ];
27   disabledTests = lib.optionals (pythonAtLeast "3.10") [
28     "test_declaration_junk_chars"
29   ];
31   pythonImportsCheck = [
32     "sgmllib"
33   ];
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   };