Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytestCheckHook,
6 setuptools,
7 setuptools-scm,
8}:
9
10buildPythonPackage rec {
11 pname = "html2text";
12 version = "2025.4.15";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "Alir3z4";
17 repo = "html2text";
18 tag = version;
19 hash = "sha256-SMdILvCVXMe3Tlf3kK54VfEKsQ/KvpBZK3xZ4zVwcfo=";
20 };
21
22 build-system = [
23 setuptools
24 setuptools-scm
25 ];
26
27 nativeCheckInputs = [ pytestCheckHook ];
28
29 pythonImportsCheck = [ "html2text" ];
30
31 meta = {
32 description = "Turn HTML into equivalent Markdown-structured text";
33 homepage = "https://github.com/Alir3z4/html2text/";
34 changelog = "https://github.com/Alir3z4/html2text/blob/${src.tag}/ChangeLog.rst";
35 license = lib.licenses.gpl3Only;
36 maintainers = [ ];
37 mainProgram = "html2text";
38 };
39}