2021-12-24 04:21:11 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, stdenv
|
2021-12-24 04:21:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2022-10-21 18:38:19 +00:00
|
|
|
, jinja2
|
|
|
|
, matplotlib
|
|
|
|
, openpyxl
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, scipy
|
|
|
|
, sqlalchemy
|
|
|
|
, tabulate
|
|
|
|
, pyarrow
|
|
|
|
, pyreadstat
|
|
|
|
, tables
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
, types-pytz
|
2021-12-24 04:21:11 +00:00
|
|
|
, typing-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
, xarray
|
2021-12-24 04:21:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pandas-stubs";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.5.0.221003";
|
|
|
|
format = "pyproject";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-21 18:38:19 +00:00
|
|
|
owner = "pandas-dev";
|
2021-12-24 04:21:11 +00:00
|
|
|
repo = pname;
|
2022-10-21 18:38:19 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-RV0pOTPtlwBmYs3nu8+lNwVpl/VC/VzcXKOQMg9C3qk=";
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
poetry-core
|
|
|
|
];
|
|
|
|
|
2021-12-24 04:21:11 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
pandas
|
|
|
|
types-pytz
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
jinja2
|
|
|
|
matplotlib
|
|
|
|
openpyxl
|
|
|
|
scipy
|
|
|
|
sqlalchemy
|
|
|
|
tabulate
|
|
|
|
pyarrow
|
|
|
|
tables
|
|
|
|
pyreadstat
|
|
|
|
pytestCheckHook
|
2021-12-24 04:21:11 +00:00
|
|
|
typing-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
xarray
|
2021-12-24 04:21:11 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AttributeErrors, missing dependencies, error and warning checks
|
|
|
|
"test_data_error"
|
|
|
|
"test_specification_error"
|
|
|
|
"test_setting_with_copy_error"
|
|
|
|
"test_setting_with_copy_warning"
|
|
|
|
"test_numexpr_clobbering_error"
|
|
|
|
"test_undefined_variable_error"
|
|
|
|
"test_indexing_error"
|
|
|
|
"test_pyperclip_exception"
|
|
|
|
"test_css_warning"
|
|
|
|
"test_possible_data_loss_error"
|
|
|
|
"test_closed_file_error"
|
|
|
|
"test_incompatibility_warning"
|
|
|
|
"test_attribute_conflict_warning"
|
|
|
|
"test_database_error"
|
|
|
|
"test_possible_precision_loss"
|
|
|
|
"test_value_label_type_mismatch"
|
|
|
|
"test_invalid_column_name"
|
|
|
|
"test_categorical_conversion_warning"
|
|
|
|
"test_join"
|
|
|
|
"test_isetframe"
|
|
|
|
"test_reset_index_150_changes"
|
|
|
|
"test_compare_150_changes"
|
|
|
|
"test_quantile_150_changes"
|
|
|
|
"test_resample_150_changes"
|
|
|
|
"test_index_astype"
|
|
|
|
"test_orc"
|
|
|
|
"test_orc_path"
|
|
|
|
"test_orc_buffer"
|
|
|
|
"test_orc_columns"
|
|
|
|
"test_orc_bytes"
|
|
|
|
"test_clipboard"
|
|
|
|
"test_clipboard_iterator"
|
|
|
|
"test_arrow_dtype"
|
|
|
|
"test_aggregate_series_combinations"
|
|
|
|
"test_aggregate_frame_combinations"
|
|
|
|
"test_types_rank"
|
|
|
|
"test_reset_index"
|
|
|
|
"test_types_assert_series_equal"
|
|
|
|
"test_show_version"
|
|
|
|
"test_dummies"
|
|
|
|
"test_from_dummies_args"
|
|
|
|
"test_rolling_step_method"
|
2022-10-30 15:09:59 +00:00
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
"test_plotting" # Fatal Python error: Illegal instruction
|
2022-10-21 18:38:19 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pandas"
|
|
|
|
];
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Type annotations for Pandas";
|
|
|
|
homepage = "https://github.com/VirtusLab/pandas-stubs";
|
|
|
|
license = licenses.mit;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ malo ];
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
}
|