37 buildPythonPackage rec {
38 pname = "pandas-stubs";
39 version = "2.2.2.240909";
42 disabled = pythonOlder "3.10";
44 src = fetchFromGitHub {
46 repo = "pandas-stubs";
47 rev = "refs/tags/v${version}";
48 hash = "sha256-Dt2a4l5WAOizUeaDa80CRuvyPT9mWfFz+zGZMm3vQP4=";
51 build-system = [ poetry-core ];
82 # Missing dependencies, error and warning checks
83 "test_all_read_without_lxml_dtype_backend" # pyarrow.orc
84 "test_orc" # pyarrow.orc
85 "test_plotting" # UserWarning: No artists with labels found to put in legend.
86 "test_spss" # FutureWarning: ChainedAssignmentError: behaviour will change in pandas 3.0!
88 # FutureWarning: In the future `np.bool` will be defined as the corresponding...
92 ++ lib.optionals stdenv.hostPlatform.isDarwin [
93 "test_clipboard" # FileNotFoundError: [Errno 2] No such file or directory: 'pbcopy'
95 ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
96 # Disable tests for types that are not supported on aarch64 in `numpy` < 2.0
97 "test_astype_float" # `f16` and `float128`
98 "test_astype_complex" # `c32` and `complex256`
101 pythonImportsCheck = [ "pandas" ];
104 description = "Type annotations for Pandas";
105 homepage = "https://github.com/pandas-dev/pandas-stubs";
106 license = licenses.mit;
107 maintainers = with maintainers; [ malo ];