f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
49 lines
958 B
Nix
49 lines
958 B
Nix
{ 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 ];
|
|
};
|
|
}
|