depot/third_party/nixpkgs/pkgs/development/python-modules/branca/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

59 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
jinja2,
pytestCheckHook,
pythonOlder,
setuptools-scm,
selenium,
}:
buildPythonPackage rec {
pname = "branca";
version = "0.7.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-visualization";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-ipu0JZIx/YgR7F5Z7sl/9YEEHkyiDllR5dHko7AlSe8=";
};
postPatch = ''
# We don't want flake8
rm setup.cfg
'';
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ jinja2 ];
nativeCheckInputs = [
pytestCheckHook
selenium
];
pythonImportsCheck = [ "branca" ];
disabledTestPaths = [
# Some tests require a browser
"tests/test_utilities.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 = with lib.maintainers; [ ];
};
}