2021-12-24 04:21:11 +00:00
|
|
|
{ lib
|
2022-10-30 15:09:59 +00:00
|
|
|
, stdenv
|
2024-02-29 20:09:43 +00:00
|
|
|
, beautifulsoup4
|
2021-12-24 04:21:11 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2024-02-29 20:09:43 +00:00
|
|
|
, html5lib
|
2022-10-21 18:38:19 +00:00
|
|
|
, jinja2
|
2024-02-29 20:09:43 +00:00
|
|
|
, lxml
|
2022-10-21 18:38:19 +00:00
|
|
|
, matplotlib
|
2023-02-22 10:55:15 +00:00
|
|
|
, odfpy
|
2022-10-21 18:38:19 +00:00
|
|
|
, openpyxl
|
|
|
|
, pandas
|
|
|
|
, poetry-core
|
|
|
|
, pyarrow
|
|
|
|
, pyreadstat
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2023-02-22 10:55:15 +00:00
|
|
|
, scipy
|
|
|
|
, sqlalchemy
|
|
|
|
, tables
|
|
|
|
, tabulate
|
2022-10-21 18:38:19 +00:00
|
|
|
, types-pytz
|
2021-12-24 04:21:11 +00:00
|
|
|
, typing-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
, xarray
|
2023-03-15 16:39:30 +00:00
|
|
|
, xlsxwriter
|
2021-12-24 04:21:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pandas-stubs";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.2.0.240218";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2021-12-24 04:21:11 +00:00
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.9";
|
2021-12-24 04:21:11 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2022-10-21 18:38:19 +00:00
|
|
|
owner = "pandas-dev";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "pandas-stubs";
|
2023-02-22 10:55:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
hash = "sha256-416vyaHcSfTfkSNKZ05edozfsMmNKcpOZAoPenCLFzQ=";
|
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
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2024-02-29 20:09:43 +00:00
|
|
|
beautifulsoup4
|
|
|
|
html5lib
|
2022-10-21 18:38:19 +00:00
|
|
|
jinja2
|
2024-02-29 20:09:43 +00:00
|
|
|
lxml
|
2022-10-21 18:38:19 +00:00
|
|
|
matplotlib
|
2023-02-22 10:55:15 +00:00
|
|
|
odfpy
|
2022-10-21 18:38:19 +00:00
|
|
|
openpyxl
|
|
|
|
pyarrow
|
|
|
|
pyreadstat
|
|
|
|
pytestCheckHook
|
2023-02-22 10:55:15 +00:00
|
|
|
scipy
|
|
|
|
sqlalchemy
|
|
|
|
tables
|
|
|
|
tabulate
|
2021-12-24 04:21:11 +00:00
|
|
|
typing-extensions
|
2022-10-21 18:38:19 +00:00
|
|
|
xarray
|
2023-03-15 16:39:30 +00:00
|
|
|
xlsxwriter
|
2021-12-24 04:21:11 +00:00
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
disabledTests = [
|
|
|
|
# AttributeErrors, missing dependencies, error and warning checks
|
2024-04-21 15:54:59 +00:00
|
|
|
"test_types_groupby"
|
|
|
|
"test_frame_groupby_resample"
|
2023-02-22 10:55:15 +00:00
|
|
|
"test_orc"
|
2024-04-21 15:54:59 +00:00
|
|
|
"test_all_read_without_lxml_dtype_backend"
|
2023-02-22 10:55:15 +00:00
|
|
|
"test_show_version"
|
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";
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://github.com/pandas-dev/pandas-stubs";
|
2021-12-24 04:21:11 +00:00
|
|
|
license = licenses.mit;
|
2022-10-21 18:38:19 +00:00
|
|
|
maintainers = with maintainers; [ malo ];
|
2021-12-24 04:21:11 +00:00
|
|
|
};
|
|
|
|
}
|