3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyvis/default.nix
erictapen 98db2f6bfa
pythonPackages.pyvis: init at 2021-04-29 (#127811)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2021-06-24 14:14:30 +02:00

45 lines
1.1 KiB
Nix

{ lib
, isPy3k
, fetchFromGitHub
, fetchpatch
, buildPythonPackage
, networkx
, jinja2
, ipython
, jsonpickle
, numpy }:
buildPythonPackage rec {
pname = "pyvis";
version = "unstable-2021-04-29";
# We use unstable, as test are failing for 0.1.9
src = fetchFromGitHub {
owner = "WestHealth";
repo = pname;
rev = "4c521302abf9725dcbe7f59962baf85360b2718d";
sha256 = "sha256-DYbHQpxtSfiLbzmBGclym/ChM0WLBzSEC/3phDTtGY8=";
};
patches = [
# Remove when https://github.com/WestHealth/pyvis/pull/101 is merged.
(fetchpatch {
url = "https://github.com/WestHealth/pyvis/commit/158a34de45f970b17ffd746c6e705b89128e2445.patch";
sha256 = "sha256-zK72nrnn5YLGNW6PKYUyHry5ORCdt1T1oH6n1X64DKg=";
})
];
propagatedBuildInputs = [ networkx jinja2 ipython jsonpickle ];
checkInputs = [ numpy ];
pythonImportsCheck = [ "pyvis" ];
meta = with lib; {
homepage = "https://github.com/WestHealth/pyvis";
description = "Python package for creating and visualizing interactive network graphs";
license = licenses.bsd3;
maintainers = with maintainers; [ erictapen ];
};
}