Merge pull request #321316 from bcdarwin/init-python3-htmltools
python312Packages.htmltools: init at 0.5.2
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, pythonOlder
|
||||
, fetchFromGitHub
|
||||
, setuptools
|
||||
, packaging
|
||||
, typing-extensions
|
||||
, pytestCheckHook
|
||||
, syrupy
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "htmltools";
|
||||
version = "0.5.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "posit-dev";
|
||||
repo = "py-htmltools";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-H0M9dY8CNQAMEGEGHhPIWEYRmk4omCuVFgJUg8ef8Zw=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
packaging
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "htmltools" ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
syrupy
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Tools for HTML generation and output";
|
||||
homepage = "https://github.com/posit-dev/py-htmltools";
|
||||
changelog = "https://github.com/posit-dev/py-htmltools/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ bcdarwin ];
|
||||
};
|
||||
}
|
||||
@@ -5624,6 +5624,8 @@ self: super: with self; {
|
||||
|
||||
htmlmin = callPackage ../development/python-modules/htmlmin { };
|
||||
|
||||
htmltools = callPackage ../development/python-modules/htmltools { };
|
||||
|
||||
html-sanitizer = callPackage ../development/python-modules/html-sanitizer { };
|
||||
|
||||
html-tag-names = callPackage ../development/python-modules/html-tag-names { };
|
||||
|
||||
Reference in New Issue
Block a user