python3Packages.iplotx: init at 0.3.1
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
{
|
||||
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 ];
|
||||
};
|
||||
}
|
||||
@@ -6732,6 +6732,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 { };
|
||||
|
||||
Reference in New Issue
Block a user