Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, fetchFromGitHub, hatchling, igraph, matplotlib, networkx, numpy, pandas, pylint, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "iplotx"; version = "1.7.1"; pyproject = true;
src = fetchFromGitHub { owner = "fabilab"; repo = "iplotx"; tag = finalAttrs.version; hash = "sha256-vLYjTYdt3ctaUwnzV73vNWu2uKpER92SH8uqeLR/G7M="; };
build-system = [ hatchling ];
dependencies = [ matplotlib numpy pandas pylint ];
pythonRelaxDeps = [ "pylint" ];
optional-dependencies = { igraph = [ igraph ]; networkx = [ networkx ]; };
postPatch = '' # silence matplotlib warning export MPLCONFIGDIR=$(mktemp -d) '';
disabledTests = [ # These tests result in an ImageComparisonFailure "test_complex" "test_complex_rotatelabels" "test_curved_waypoints" "test_directed_graph" "test_display_shortest_path" "test_labels" "test_labels_and_colors" "test_vertex_labels" # AttributeError: 'Vertex3DCollection' object has no attribute... "test_undirected" "test_directed" # eError: module 'matplotlib.cm' has no attribute '_ensure_cmap' "test_build_cmap_fun" "test_edges_cmap" "test_leafedges_cmap" "test_init_cmap" # matplotlib.testing.exceptions.ImageComparisonFailure: images not close (RMS... "test_simple_graph" ];
nativeCheckInputs = [ pytestCheckHook ] ++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
pythonImportsCheck = [ "iplotx" ];
meta = { description = "Plot networkx from igraph and networkx"; homepage = "https://iplotx.readthedocs.io/"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ jboy ]; };})