Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / html2text / default.nix
blobbda7879eab0a47b0002df1a4beb70ffa63d3a607
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , setuptools
7 }:
9 buildPythonPackage rec {
10   pname = "html2text";
11   version = "2024.2.26";
12   pyproject = true;
13   disabled = pythonOlder "3.8";
15   src = fetchFromGitHub {
16     owner = "Alir3z4";
17     repo = "html2text";
18     rev = "refs/tags/${version}";
19     sha256 = "sha256-1CLkTFR+/XQ428WjMF7wliyAG6CB+n8JSsLDdLHPO7I=";
20   };
22   nativeBuildInputs = [
23     setuptools
24   ];
26   nativeCheckInputs = [ pytestCheckHook ];
28   pythonImportsCheck = [ "html2text" ];
30   meta = with lib; {
31     changelog = "https://github.com/Alir3z4/html2text/blob/${src.rev}/ChangeLog.rst";
32     description = "Turn HTML into equivalent Markdown-structured text";
33     homepage = "https://github.com/Alir3z4/html2text/";
34     license = licenses.gpl3Only;
35     mainProgram = "html2text";
36     maintainers = [ ];
37   };