15 node = callPackage ./node {};
16 in buildPythonPackage rec {
20 # Don't forget to also update the node packages
21 # 1. retrieve the package.json file
22 # 2. nix shell nixpkgs#nodePackages.node2nix
25 inherit pname version;
26 sha256 = "ce531e5c0c8a8ae74d523762aeb1666650caebbe1867aba16129d29791e921f9";
29 # Since 0.10.0 panel attempts to fetch from the web.
31 # - we use node2nix to fetch assets
32 # - we disable bundling (which also tries to fetch assets)
33 # Downside of disabling bundling is that in an airgapped environment
34 # one may miss assets.
35 # https://github.com/holoviz/panel/issues/1819
37 substituteInPlace setup.py --replace "bundle_resources()" ""
39 ln -s ${node.nodeDependencies}/lib/node_modules
40 export PATH="${node.nodeDependencies}/bin:$PATH"
44 propagatedBuildInputs = [
54 # infinite recursion in test dependencies (hvplot)
58 inherit node; # For convenience
62 description = "A high level dashboarding library for python visualization libraries";
63 homepage = "https://pyviz.org";
64 license = licenses.bsd3;
65 maintainers = [ maintainers.costrouc ];