Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

74 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchFromGitHub,
isPyPy,
# build-system
setuptools,
# propagates
markupsafe,
# optional-dependencies
babel,
lingua,
# tests
chameleon,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "mako";
version = "1.3.10";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sqlalchemy";
repo = "mako";
tag = "rel_${lib.replaceStrings [ "." ] [ "_" ] version}";
hash = "sha256-lxGlYyKbrDpr2LHcsqTow+s2l8+g+63M5j8xJt++tGo=";
};
build-system = [ setuptools ];
dependencies = [ markupsafe ];
optional-dependencies = {
babel = [ babel ];
lingua = [ lingua ];
};
nativeCheckInputs = [
chameleon
mock
pytestCheckHook
]
++ lib.flatten (lib.attrValues optional-dependencies);
disabledTests = lib.optionals isPyPy [
# https://github.com/sqlalchemy/mako/issues/315
"test_alternating_file_names"
# https://github.com/sqlalchemy/mako/issues/238
"test_file_success"
"test_stdin_success"
# fails on pypy2.7
"test_bytestring_passthru"
];
meta = with lib; {
description = "Super-fast templating language";
mainProgram = "mako-render";
homepage = "https://www.makotemplates.org/";
changelog = "https://docs.makotemplates.org/en/latest/changelog.html";
license = licenses.mit;
platforms = platforms.unix;
maintainers = [ ];
};
}