python3Packages.textnets: 0.9.5 -> 0.10.3 (#393993)

Changed files
+11 -25
pkgs
development
python-modules
textnets
+11 -25
pkgs/development/python-modules/textnets/default.nix
···
fetchFromGitHub,
# build-system
-
cython,
-
poetry-core,
+
cython_0,
+
pdm-backend,
setuptools,
# dependencies
-
cairocffi,
igraph,
leidenalg,
+
matplotlib,
pandas,
pyarrow,
scipy,
···
buildPythonPackage rec {
pname = "textnets";
-
version = "0.9.5";
+
version = "0.10.3";
pyproject = true;
src = fetchFromGitHub {
owner = "jboynyc";
repo = "textnets";
tag = "v${version}";
-
hash = "sha256-MdKPxIshSx6U2EFGDTUS4EhoByyuVf0HKqvm9cS2KNY=";
+
hash = "sha256-BK0bBoe6GrZpVL4HvTwzRlXRWXfKdYJDhLD2UQctTjc=";
};
build-system = [
-
cython
-
poetry-core
+
cython_0
+
pdm-backend
setuptools
];
pythonRelaxDeps = [
-
"igraph"
-
"leidenalg"
"pyarrow"
"toolz"
];
dependencies = [
-
cairocffi
igraph
leidenalg
+
matplotlib
pandas
pyarrow
scipy
···
pythonImportsCheck = [ "textnets" ];
-
# Enables the package to find the cythonized .so files during testing. See #255262
+
# Enable the package to find the cythonized .so files during testing. See #255262
+
# Set MPLBACKEND=agg for headless matplotlib on darwin. See #350784
preCheck = ''
rm -r textnets
+
export MPLBACKEND=agg
'';
-
-
disabledTests =
-
[
-
# Test fails: Throws a UserWarning asking the user to install `textnets[fca]`.
-
"test_context"
-
]
-
++ lib.optionals stdenv.hostPlatform.isDarwin [
-
# MemoryError: ("cairo returned CAIRO_STATUS_NO_MEMORY: b'out of memory'", 1)
-
"test_plot_backbone"
-
"test_plot_filtered"
-
"test_plot_layout"
-
"test_plot_projected"
-
"test_plot_scaled"
-
];
meta = {
description = "Text analysis with networks";