anki-bin: 24.06.3 -> 24.11 (#360722)
[NixPkgs.git] / pkgs / development / python-modules / branca / default.nix
blobaca3fcd645d0b549b70cadb22c8580c4fca3723e
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   jinja2,
6   pytestCheckHook,
7   pythonOlder,
8   setuptools-scm,
9   selenium,
12 buildPythonPackage rec {
13   pname = "branca";
14   version = "0.8.0";
15   format = "setuptools";
17   disabled = pythonOlder "3.7";
19   src = fetchFromGitHub {
20     owner = "python-visualization";
21     repo = pname;
22     rev = "refs/tags/v${version}";
23     hash = "sha256-9imrW4u2Ea1q7VKgk6Vs8y2OiSzAPr3W6471pi/gVm4=";
24   };
26   postPatch = ''
27     # We don't want flake8
28     rm setup.cfg
29   '';
31   nativeBuildInputs = [ setuptools-scm ];
33   propagatedBuildInputs = [ jinja2 ];
35   nativeCheckInputs = [
36     pytestCheckHook
37     selenium
38   ];
40   pythonImportsCheck = [ "branca" ];
42   disabledTestPaths = [
43     # Some tests require a browser
44     "tests/test_utilities.py"
45   ];
47   disabledTests = [
48     "test_rendering_utf8_iframe"
49     "test_rendering_figure_notebook"
50   ];
52   meta = with lib; {
53     description = "Generate complex HTML+JS pages with Python";
54     homepage = "https://github.com/python-visualization/branca";
55     changelog = "https://github.com/python-visualization/branca/blob/v${version}/CHANGES.txt";
56     license = with licenses; [ mit ];
57     maintainers = [ ];
58   };