mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
5356420466
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \ -e 's!with lib.maintainers; \[ *\];![ ];!' \ -e 's!with maintainers; \[ *\];![ ];!'
39 lines
856 B
Nix
39 lines
856 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pythonOlder,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "html2text";
|
|
version = "2024.2.26";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Alir3z4";
|
|
repo = "html2text";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-1CLkTFR+/XQ428WjMF7wliyAG6CB+n8JSsLDdLHPO7I=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "html2text" ];
|
|
|
|
meta = with lib; {
|
|
description = "Turn HTML into equivalent Markdown-structured text";
|
|
homepage = "https://github.com/Alir3z4/html2text/";
|
|
changelog = "https://github.com/Alir3z4/html2text/blob/${src.rev}/ChangeLog.rst";
|
|
license = licenses.gpl3Only;
|
|
maintainers = [ ];
|
|
mainProgram = "html2text";
|
|
};
|
|
}
|