python3Packages.tinyhtml: init 1.3.0
New dependency for pyicloud.
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
})
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user