mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
python311Packages.textnets: 0.9.3 -> 0.9.4
This commit is contained in:
parent
ac85b4b653
commit
cd6e28ab9d
@ -1,7 +1,7 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, cairocffi
|
||||
, cython
|
||||
, cython_3
|
||||
, fetchPypi
|
||||
, igraph
|
||||
, leidenalg
|
||||
@ -9,6 +9,7 @@
|
||||
, poetry-core
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pythonRelaxDepsHook
|
||||
, scipy
|
||||
, setuptools
|
||||
, spacy
|
||||
@ -21,22 +22,25 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "textnets";
|
||||
version = "0.9.3";
|
||||
version = "0.9.4";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-fx2S43IqpSMsfJow26jB/D27dyUFQ1PlXP1rbUIZPPQ=";
|
||||
hash = "sha256-4154ytzo1QpwhKA1BkVMss9fNIkysnClW/yfSVlX33M=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
cython
|
||||
pythonRelaxDepsHook
|
||||
cython_3
|
||||
poetry-core
|
||||
setuptools
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [ "igraph" "leidenalg" ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
cairocffi
|
||||
igraph
|
||||
@ -59,10 +63,14 @@ buildPythonPackage rec {
|
||||
"textnets"
|
||||
];
|
||||
|
||||
# Enables the package to find the cythonized .so files during testing. See #255262
|
||||
preCheck = ''
|
||||
rm -r textnets
|
||||
'';
|
||||
|
||||
disabledTests = [
|
||||
# Test fails: A warning is triggered because of a deprecation notice by pandas.
|
||||
# TODO: Try to re-enable it when pandas is updated to 2.1.1
|
||||
"test_corpus_czech"
|
||||
# Test fails: Throws a UserWarning asking the user to install `textnets[fca]`.
|
||||
"test_context"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
|
Loading…
Reference in New Issue
Block a user