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