codesnap: init at 0.8.2 (#364266)
[NixPkgs.git] / pkgs / development / python-modules / html2text / default.nix
blobb114029aadacb8eb555fe31083e7e4f48e5c84f1
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   pythonOlder,
6   pytestCheckHook,
7   setuptools,
8 }:
10 buildPythonPackage rec {
11   pname = "html2text";
12   version = "2024.2.26";
13   pyproject = true;
15   disabled = pythonOlder "3.8";
17   src = fetchFromGitHub {
18     owner = "Alir3z4";
19     repo = "html2text";
20     rev = "refs/tags/${version}";
21     hash = "sha256-1CLkTFR+/XQ428WjMF7wliyAG6CB+n8JSsLDdLHPO7I=";
22   };
24   build-system = [ setuptools ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "html2text" ];
30   meta = with lib; {
31     description = "Turn HTML into equivalent Markdown-structured text";
32     homepage = "https://github.com/Alir3z4/html2text/";
33     changelog = "https://github.com/Alir3z4/html2text/blob/${src.rev}/ChangeLog.rst";
34     license = licenses.gpl3Only;
35     maintainers = [ ];
36     mainProgram = "html2text";
37   };