Unverified Commit 8d605c19 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

python312Packages.pandas-stubs: 2.2.2.240603 -> 2.2.2.240909 (#341512)

parents 32caaebd 1e12eebe
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@
  pandas,
  pyarrow,
  pyreadstat,
  python-calamine,
  scipy,
  sqlalchemy,
  tables,
@@ -35,16 +36,16 @@

buildPythonPackage rec {
  pname = "pandas-stubs";
  version = "2.2.2.240603";
  version = "2.2.2.240909";
  pyproject = true;

  disabled = pythonOlder "3.9";
  disabled = pythonOlder "3.10";

  src = fetchFromGitHub {
    owner = "pandas-dev";
    repo = "pandas-stubs";
    rev = "refs/tags/v${version}";
    hash = "sha256-wJ7lN1+BGNqhwgPLmmpb3foX6rIEy3R62rOvu0mr8xs=";
    hash = "sha256-Dt2a4l5WAOizUeaDa80CRuvyPT9mWfFz+zGZMm3vQP4=";
  };

  build-system = [ poetry-core ];
@@ -73,9 +74,7 @@ buildPythonPackage rec {
    typing-extensions
    xarray
    xlsxwriter

    # missing dependencies in nixpkgs
    # python-calamine
    python-calamine
  ];

  disabledTests =
@@ -83,10 +82,12 @@ buildPythonPackage rec {
      # 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"
      # FutureWarning: In the future `np.bool` will be defined as the corresponding...
      "test_timedelta_cmp"
      "test_timestamp_cmp"
    ]
    ++ lib.optionals stdenv.isDarwin [
      "test_clipboard" # FileNotFoundError: [Errno 2] No such file or directory: 'pbcopy'
+914 −0

File added.

Preview size limit exceeded, changes collapsed.

+61 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  cargo,
  fetchFromGitHub,
  poetry-core,
  pytestCheckHook,
  pythonOlder,
  rustc,
  packaging,
  rustPlatform,
}:

buildPythonPackage rec {
  pname = "python-calamine";
  version = "0.2.3";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "dimastbk";
    repo = "python-calamine";
    rev = "refs/tags/v${version}";
    hash = "sha256-zZqhvfpkkbWLhPJIthDgxqvPUMpaXkyptuzY2fcecHU=";
  };

  cargoDeps = rustPlatform.importCargoLock {
    lockFile = ./Cargo.lock;
    outputHashes = {
      "pyo3-file-0.8.1" = "sha256-EqeXykP7CF8SU5LgT9+y/FDy79E/DAJT2fc1OrmlOZE=";
    };
  };

  postPatch = ''
    ln -s ${./Cargo.lock} Cargo.lock
  '';

  build-system = [
    cargo
    poetry-core
    rustPlatform.cargoSetupHook
    rustPlatform.maturinBuildHook
    rustc
  ];

  dependencies = [ packaging ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "python_calamine" ];

  meta = {
    description = "Python binding for calamine";
    homepage = "https://github.com/dimastbk/python-calamine";
    changelog = "https://github.com/dimastbk/python-calamine/releases/tag/v${version}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ fab ];
    mainProgram = "python-calamine";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -10221,6 +10221,8 @@ self: super: with self; {
  pywebcopy = callPackage ../development/python-modules/pywebcopy { };
  python-calamine = callPackage ../development/python-modules/python-calamine { };
  python-can = callPackage ../development/python-modules/python-can { };
  python-codon-tables = callPackage ../development/python-modules/python-codon-tables { };