push sheeet
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

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
jinja2,
pytestCheckHook,
pythonOlder,
setuptools-scm,
selenium,
}:
buildPythonPackage rec {
pname = "branca";
version = "0.8.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "python-visualization";
repo = "branca";
tag = "v${version}";
hash = "sha256-Gnr3ONqWpUNOGiOlyq77d9PxcDT8TjqTHYBGxH+V+xc=";
};
postPatch = ''
# We don't want flake8
rm setup.cfg
'';
build-system = [ setuptools-scm ];
dependencies = [ jinja2 ];
nativeCheckInputs = [
pytestCheckHook
selenium
];
pythonImportsCheck = [ "branca" ];
disabledTestPaths = [
# Some tests require a browser
"tests/test_utilities.py"
"tests/test_iframe.py"
];
disabledTests = [
"test_rendering_utf8_iframe"
"test_rendering_figure_notebook"
];
meta = with lib; {
description = "Generate complex HTML+JS pages with Python";
homepage = "https://github.com/python-visualization/branca";
changelog = "https://github.com/python-visualization/branca/blob/v${version}/CHANGES.txt";
license = with licenses; [ mit ];
maintainers = [ ];
};
}