Unverified Commit 50f157b1 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

python3Packages.iplotx: init at 0.3.1 (#419858)

parents 6b6da6aa 6426fc77
Loading
Loading
Loading
Loading
+66 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  igraph,
  matplotlib,
  networkx,
  numpy,
  pandas,
  pylint,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "iplotx";
  version = "0.3.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "fabilab";
    repo = "iplotx";
    tag = version;
    hash = "sha256-3Nn/sz1yUaxhGFr0hMGoLEBF5pNs+tz/KpsGtKkYujo=";
  };

  build-system = [ hatchling ];

  dependencies = [
    matplotlib
    numpy
    pandas
    pylint
  ];

  pythonRelaxDeps = [ "pylint" ];

  optional-dependencies = {
    igraph = [ igraph ];
    networkx = [ networkx ];
  };

  postPatch = ''
    # silence matplotlib warning
    export MPLCONFIGDIR=$(mktemp -d)
  '';

  # These four tests result in an ImageComparisonFailure
  disabledTests = [
    "test_labels"
    "test_complex"
    "test_display_shortest_path"
    "test_labels_and_colors"
  ];

  nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues 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 ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -7010,6 +7010,8 @@ self: super: with self; {
  ipfshttpclient = callPackage ../development/python-modules/ipfshttpclient { };
  iplotx = callPackage ../development/python-modules/iplotx { };
  iptools = callPackage ../development/python-modules/iptools { };
  ipwhl = callPackage ../development/python-modules/ipwhl { };