1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 flit-core,
6 webencodings,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "tinyhtml5";
12 version = "2.0.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "CourtBouillon";
17 repo = "tinyhtml5";
18 tag = version;
19 hash = "sha256-8OKZAQyFMoICcln6XxTE9MHivXaW8pBVC6n+hbriIoU=";
20 };
21
22 build-system = [
23 flit-core
24 ];
25
26 dependencies = [
27 webencodings
28 ];
29
30 nativeCheckInputs = [
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [
35 "tinyhtml5"
36 ];
37
38 meta = {
39 changelog = "https://github.com/CourtBouillon/tinyhtml5/releases/tag/${src.tag}";
40 description = "Tiny HTML5 parser";
41 homepage = "https://github.com/CourtBouillon/tinyhtml5";
42 license = lib.licenses.mit;
43 maintainers = with lib.maintainers; [ ];
44 };
45}