python3Packages.tinyhtml: init 1.3.0

New dependency for pyicloud.
This commit is contained in:
Martin Weinelt
2026-07-04 23:05:37 +02:00
parent 9ddc67a89e
commit 00ab60e03a
2 changed files with 53 additions and 0 deletions
@@ -0,0 +1,51 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
jinja2,
pandas,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "tinyhtml";
version = "1.3.0";
pyproject = true;
__structuredAttrs = true;
src = fetchFromGitHub {
owner = "niklasf";
repo = "python-tinyhtml";
tag = "v${finalAttrs.version}";
hash = "sha256-1DPQFszrNsGNEpEl4c1SNdnNfwi3bcHzCrOWdu+dTGA=";
};
build-system = [
setuptools
];
nativeCheckInputs = [
pandas
jinja2
];
# https://github.com/niklasf/python-tinyhtml/blob/master/tox.ini
checkPhase = ''
runHook preCheck
python -m doctest README.rst
runHook postCheck
'';
pythonImportsCheck = [
"tinyhtml"
];
meta = {
description = "Tiny library to safely render compact HTML5 from Python expressions";
homepage = "https://github.com/niklasf/python-tinyhtml";
changelog = "https://github.com/niklasf/python-tinyhtml/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ hexa ];
};
})
+2
View File
@@ -20029,6 +20029,8 @@ self: super: with self; {
tinygrad = callPackage ../development/python-modules/tinygrad { };
tinyhtml = callPackage ../development/python-modules/tinyhtml { };
tinyhtml5 = callPackage ../development/python-modules/tinyhtml5 { };
tinyio = callPackage ../development/python-modules/tinyio { };