summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/html2text/default.nix
blob: 175e19c75570ac59e2b18b6479bc9c085c985afd (plain)
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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "html2text";
  version = "2025.4.15";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Alir3z4";
    repo = "html2text";
    tag = version;
    hash = "sha256-SMdILvCVXMe3Tlf3kK54VfEKsQ/KvpBZK3xZ4zVwcfo=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "html2text" ];

  meta = {
    description = "Turn HTML into equivalent Markdown-structured text";
    homepage = "https://github.com/Alir3z4/html2text/";
    changelog = "https://github.com/Alir3z4/html2text/blob/${src.tag}/ChangeLog.rst";
    license = lib.licenses.gpl3Only;
    maintainers = [ ];
    mainProgram = "html2text";
  };
}