Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / branca / default.nix
blob77f146896062d6854f4f24f573c533ff94dca6e5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , jinja2
5 , pytestCheckHook
6 , pythonOlder
7 , setuptools-scm
8 , selenium
9 }:
11 buildPythonPackage rec {
12   pname = "branca";
13   version = "0.7.2";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "python-visualization";
20     repo = pname;
21     rev = "refs/tags/v${version}";
22     hash = "sha256-ipu0JZIx/YgR7F5Z7sl/9YEEHkyiDllR5dHko7AlSe8=";
23   };
25   postPatch = ''
26     # We don't want flake8
27     rm setup.cfg
28   '';
30   nativeBuildInputs = [
31     setuptools-scm
32   ];
34   propagatedBuildInputs = [
35     jinja2
36   ];
38   nativeCheckInputs = [
39     pytestCheckHook
40     selenium
41   ];
43   pythonImportsCheck = [
44     "branca"
45   ];
47   disabledTestPaths = [
48     # Some tests require a browser
49     "tests/test_utilities.py"
50   ];
52   disabledTests = [
53     "test_rendering_utf8_iframe"
54     "test_rendering_figure_notebook"
55   ];
57   meta = with lib; {
58     description = "Generate complex HTML+JS pages with Python";
59     homepage = "https://github.com/python-visualization/branca";
60     changelog = "https://github.com/python-visualization/branca/blob/v${version}/CHANGES.txt";
61     license = with licenses; [ mit ];
62     maintainers = with lib.maintainers; [ ];
63   };