blob: aca3fcd645d0b549b70cadb22c8580c4fca3723e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
jinja2,
pytestCheckHook,
pythonOlder,
setuptools-scm,
selenium,
}:
buildPythonPackage rec {
pname = "branca";
version = "0.8.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "python-visualization";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-9imrW4u2Ea1q7VKgk6Vs8y2OiSzAPr3W6471pi/gVm4=";
};
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 = [ ];
};
}
|