python311Packages.pandas-stubs: 2.2.0.240218 -> 2.2.2.240603, update/fix deps and tests
This commit is contained in:
@@ -1,9 +1,20 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
beautifulsoup4,
|
||||
buildPythonPackage,
|
||||
pythonOlder,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
poetry-core,
|
||||
|
||||
# dependencies
|
||||
numpy,
|
||||
types-pytz,
|
||||
|
||||
# tests
|
||||
pytestCheckHook,
|
||||
beautifulsoup4,
|
||||
html5lib,
|
||||
jinja2,
|
||||
lxml,
|
||||
@@ -11,16 +22,12 @@
|
||||
odfpy,
|
||||
openpyxl,
|
||||
pandas,
|
||||
poetry-core,
|
||||
pyarrow,
|
||||
pyreadstat,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
scipy,
|
||||
sqlalchemy,
|
||||
tables,
|
||||
tabulate,
|
||||
types-pytz,
|
||||
typing-extensions,
|
||||
xarray,
|
||||
xlsxwriter,
|
||||
@@ -28,7 +35,7 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pandas-stubs";
|
||||
version = "2.2.0.240218";
|
||||
version = "2.2.2.240603";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
@@ -37,17 +44,18 @@ buildPythonPackage rec {
|
||||
owner = "pandas-dev";
|
||||
repo = "pandas-stubs";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-416vyaHcSfTfkSNKZ05edozfsMmNKcpOZAoPenCLFzQ=";
|
||||
hash = "sha256-wJ7lN1+BGNqhwgPLmmpb3foX6rIEy3R62rOvu0mr8xs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ poetry-core ];
|
||||
build-system = [ poetry-core ];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pandas
|
||||
dependencies = [
|
||||
numpy
|
||||
types-pytz
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
beautifulsoup4
|
||||
html5lib
|
||||
jinja2
|
||||
@@ -55,9 +63,9 @@ buildPythonPackage rec {
|
||||
matplotlib
|
||||
odfpy
|
||||
openpyxl
|
||||
pandas
|
||||
pyarrow
|
||||
pyreadstat
|
||||
pytestCheckHook
|
||||
scipy
|
||||
sqlalchemy
|
||||
tables
|
||||
@@ -65,19 +73,28 @@ buildPythonPackage rec {
|
||||
typing-extensions
|
||||
xarray
|
||||
xlsxwriter
|
||||
|
||||
# missing dependencies in nixpkgs
|
||||
# python-calamine
|
||||
];
|
||||
|
||||
disabledTests =
|
||||
[
|
||||
# AttributeErrors, missing dependencies, error and warning checks
|
||||
"test_types_groupby"
|
||||
"test_frame_groupby_resample"
|
||||
"test_orc"
|
||||
"test_all_read_without_lxml_dtype_backend"
|
||||
# Missing dependencies, error and warning checks
|
||||
"test_all_read_without_lxml_dtype_backend" # pyarrow.orc
|
||||
"test_orc" # pyarrow.orc
|
||||
"test_read_excel" # python-calamine
|
||||
"test_plotting" # UserWarning: No artists with labels found to put in legend.
|
||||
"test_spss" # FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0!
|
||||
"test_show_version"
|
||||
]
|
||||
++ lib.optionals stdenv.isDarwin [
|
||||
"test_plotting" # Fatal Python error: Illegal instruction
|
||||
"test_clipboard" # FileNotFoundError: [Errno 2] No such file or directory: 'pbcopy'
|
||||
]
|
||||
++ lib.optionals (stdenv.isDarwin && stdenv.isAarch64) [
|
||||
# Disable tests for types that are not supported on aarch64 in `numpy` < 2.0
|
||||
"test_astype_float" # `f16` and `float128`
|
||||
"test_astype_complex" # `c32` and `complex256`
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pandas" ];
|
||||
|
||||
Reference in New Issue
Block a user