nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.1 kB view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 jinja2, 6 pytestCheckHook, 7 setuptools-scm, 8 selenium, 9}: 10 11buildPythonPackage rec { 12 pname = "branca"; 13 version = "0.8.2"; 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "python-visualization"; 18 repo = "branca"; 19 tag = "v${version}"; 20 hash = "sha256-H5hHQI4r0QavygQZzEZAEp+cjra5R9m/OoGHQPtnBg0="; 21 }; 22 23 postPatch = '' 24 # We don't want flake8 25 rm setup.cfg 26 ''; 27 28 build-system = [ setuptools-scm ]; 29 30 dependencies = [ jinja2 ]; 31 32 nativeCheckInputs = [ 33 pytestCheckHook 34 selenium 35 ]; 36 37 pythonImportsCheck = [ "branca" ]; 38 39 disabledTestPaths = [ 40 # Some tests require a browser 41 "tests/test_utilities.py" 42 "tests/test_iframe.py" 43 ]; 44 45 disabledTests = [ 46 "test_rendering_utf8_iframe" 47 "test_rendering_figure_notebook" 48 ]; 49 50 meta = { 51 description = "Generate complex HTML+JS pages with Python"; 52 homepage = "https://github.com/python-visualization/branca"; 53 changelog = "https://github.com/python-visualization/branca/blob/${src.tag}/CHANGES.txt"; 54 license = with lib.licenses; [ mit ]; 55 maintainers = [ ]; 56 }; 57}