Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at lanzaboote 130 lines 2.8 kB view raw
1{ lib 2, stdenv 3, buildPythonPackage 4, fetchFromGitHub 5, jinja2 6, matplotlib 7, odfpy 8, openpyxl 9, pandas 10, poetry-core 11, pyarrow 12, pyreadstat 13, pytestCheckHook 14, pythonOlder 15, scipy 16, sqlalchemy 17, tables 18, tabulate 19, types-pytz 20, typing-extensions 21, xarray 22, xlsxwriter 23}: 24 25buildPythonPackage rec { 26 pname = "pandas-stubs"; 27 version = "2.0.3.230814"; 28 format = "pyproject"; 29 30 disabled = pythonOlder "3.8"; 31 32 src = fetchFromGitHub { 33 owner = "pandas-dev"; 34 repo = pname; 35 rev = "refs/tags/v${version}"; 36 hash = "sha256-V/igL+vPJADOL7LwBJljqs2a1BB3vDVYTWXIkK/ImYY="; 37 }; 38 39 nativeBuildInputs = [ 40 poetry-core 41 ]; 42 43 propagatedBuildInputs = [ 44 pandas 45 types-pytz 46 ]; 47 48 nativeCheckInputs = [ 49 jinja2 50 matplotlib 51 odfpy 52 openpyxl 53 pyarrow 54 pyreadstat 55 pytestCheckHook 56 scipy 57 sqlalchemy 58 tables 59 tabulate 60 typing-extensions 61 xarray 62 xlsxwriter 63 ]; 64 65 disabledTests = [ 66 # AttributeErrors, missing dependencies, error and warning checks 67 "test_aggregate_frame_combinations" 68 "test_aggregate_series_combinations" 69 "test_all_read_without_lxml_dtype_backend" 70 "test_arrow_dtype" 71 "test_attribute_conflict_warning" 72 "test_categorical_conversion_warning" 73 "test_clipboard_iterator" 74 "test_clipboard" 75 "test_closed_file_error" 76 "test_compare_150_changes" 77 "test_crosstab_args" 78 "test_css_warning" 79 "test_data_error" 80 "test_database_error" 81 "test_dummies" 82 "test_from_dummies_args" 83 "test_hdf_context_manager" 84 "test_hdfstore" 85 "test_incompatibility_warning" 86 "test_index_astype" 87 "test_indexing_error" 88 "test_invalid_column_name" 89 "test_isetframe" 90 "test_join" 91 "test_numexpr_clobbering_error" 92 "test_orc_buffer" 93 "test_orc_bytes" 94 "test_orc_columns" 95 "test_orc_path" 96 "test_orc" 97 "test_possible_data_loss_error" 98 "test_possible_precision_loss" 99 "test_pyperclip_exception" 100 "test_quantile_150_changes" 101 "test_read_hdf_iterator" 102 "test_read_sql_via_sqlalchemy_connection" 103 "test_read_sql_via_sqlalchemy_engine" 104 "test_resample_150_changes" 105 "test_reset_index_150_changes" 106 "test_reset_index" 107 "test_rolling_step_method" 108 "test_setting_with_copy_error" 109 "test_setting_with_copy_warning" 110 "test_show_version" 111 "test_specification_error" 112 "test_types_assert_series_equal" 113 "test_types_rank" 114 "test_undefined_variable_error" 115 "test_value_label_type_mismatch" 116 ] ++ lib.optionals stdenv.isDarwin [ 117 "test_plotting" # Fatal Python error: Illegal instruction 118 ]; 119 120 pythonImportsCheck = [ 121 "pandas" 122 ]; 123 124 meta = with lib; { 125 description = "Type annotations for Pandas"; 126 homepage = "https://github.com/pandas-dev/pandas-stubs"; 127 license = licenses.mit; 128 maintainers = with maintainers; [ malo ]; 129 }; 130}