at 23.05-pre 1.0 kB view raw
1{ lib 2, fetchFromGitHub 3, fetchpatch 4, buildPythonPackage 5, networkx 6, jinja2 7, ipython 8, jsonpickle 9, numpy 10}: 11 12buildPythonPackage rec { 13 pname = "pyvis"; 14 version = "0.2.1"; 15 16 src = fetchFromGitHub { 17 owner = "WestHealth"; 18 repo = pname; 19 rev = "v${version}"; 20 sha256 = "sha256-cER5XYxnURzRLtrisWBu2kxtOiRqgaRTJYyaCMh2qqE="; 21 }; 22 23 patches = [ 24 # Fix test: https://github.com/WestHealth/pyvis/issues/138 25 (fetchpatch { 26 url = "https://github.com/WestHealth/pyvis/commit/eaa24b882401e2e74353efa78bf4e71a880cfc47.patch"; 27 sha256 = "sha256-hyDypavoCM36SiuQda1U4FLUPdAjTIMtaeZ0KqfHKzI="; 28 }) 29 ]; 30 31 propagatedBuildInputs = [ networkx jinja2 ipython jsonpickle ]; 32 33 checkInputs = [ numpy ]; 34 35 pythonImportsCheck = [ "pyvis" ]; 36 37 meta = with lib; { 38 homepage = "https://github.com/WestHealth/pyvis"; 39 description = "Python package for creating and visualizing interactive network graphs"; 40 license = licenses.bsd3; 41 maintainers = with maintainers; [ erictapen ]; 42 }; 43}