mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
python311Packages.html2text: 2020.1.16 -> 2024.2.26
Diff: https://github.com/Alir3z4/html2text/compare/refs/tags/2020.1.16...2024.2.26 Changelog: https://github.com/Alir3z4/html2text/blob/refs/tags/2024.2.26/ChangeLog.rst
This commit is contained in:
parent
817a592c92
commit
97d976bb60
@ -3,29 +3,36 @@
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, pytestCheckHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "html2text";
|
||||
version = "2024.2.26";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.5";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Alir3z4";
|
||||
repo = pname;
|
||||
repo = "html2text";
|
||||
rev = "refs/tags/${version}";
|
||||
sha256 = "sha256-1CLkTFR+/XQ428WjMF7wliyAG6CB+n8JSsLDdLHPO7I=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
pythonImportsCheck = [ "html2text" ];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/Alir3z4/html2text/blob/${src.rev}/ChangeLog.rst";
|
||||
description = "Turn HTML into equivalent Markdown-structured text";
|
||||
mainProgram = "html2text";
|
||||
homepage = "https://github.com/Alir3z4/html2text/";
|
||||
license = licenses.gpl3Only;
|
||||
mainProgram = "html2text";
|
||||
maintainers = [ ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user