Merge pull request #249289 from fabaff/pandas-stubs-bump

python311Packages.pandas-stubs: 1.5.3.230321 -> 2.0.3.230814
This commit is contained in:
Fabian Affolter 2023-08-15 16:24:43 +02:00 committed by GitHub
commit 59c6613dd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 37 deletions

View file

@ -59,10 +59,16 @@ buildPythonPackage {
src = fetchFromGitHub {
owner = "facebookresearch";
repo = "detectron2";
rev = "v${version}";
rev = "refs/tags/v${version}";
sha256 = "1w6cgvc8r2lwr72yxicls650jr46nriv1csivp2va9k1km8jx2sf";
};
postPatch = ''
# https://github.com/facebookresearch/detectron2/issues/5010
substituteInPlace detectron2/data/transforms/transform.py \
--replace "interp=Image.LINEAR" "interp=Image.BILINEAR"
'';
nativeBuildInputs = [
pythonRelaxDepsHook
ninja
@ -123,6 +129,8 @@ buildPythonPackage {
"tests/structures/test_instances.py"
# hangs for some reason
"tests/modeling/test_model_e2e.py"
# KeyError: 'precision'
"tests/data/test_coco_evaluation.py"
];
disabledTests = [

View file

@ -24,7 +24,7 @@
buildPythonPackage rec {
pname = "pandas-stubs";
version = "1.5.3.230321";
version = "2.0.3.230814";
format = "pyproject";
disabled = pythonOlder "3.8";
@ -33,7 +33,7 @@ buildPythonPackage rec {
owner = "pandas-dev";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-RjU762VyDPy86Cvmr8hfPkqLtmntB3F6tf2OAgqmnK4=";
hash = "sha256-V/igL+vPJADOL7LwBJljqs2a1BB3vDVYTWXIkK/ImYY=";
};
nativeBuildInputs = [
@ -66,6 +66,7 @@ buildPythonPackage rec {
# AttributeErrors, missing dependencies, error and warning checks
"test_aggregate_frame_combinations"
"test_aggregate_series_combinations"
"test_all_read_without_lxml_dtype_backend"
"test_arrow_dtype"
"test_attribute_conflict_warning"
"test_categorical_conversion_warning"
@ -79,6 +80,8 @@ buildPythonPackage rec {
"test_database_error"
"test_dummies"
"test_from_dummies_args"
"test_hdf_context_manager"
"test_hdfstore"
"test_incompatibility_warning"
"test_index_astype"
"test_indexing_error"
@ -95,6 +98,9 @@ buildPythonPackage rec {
"test_possible_precision_loss"
"test_pyperclip_exception"
"test_quantile_150_changes"
"test_read_hdf_iterator"
"test_read_sql_via_sqlalchemy_connection"
"test_read_sql_via_sqlalchemy_engine"
"test_resample_150_changes"
"test_reset_index_150_changes"
"test_reset_index"
@ -107,8 +113,6 @@ buildPythonPackage rec {
"test_types_rank"
"test_undefined_variable_error"
"test_value_label_type_mismatch"
"test_read_sql_via_sqlalchemy_connection"
"test_read_sql_via_sqlalchemy_engine"
] ++ lib.optionals stdenv.isDarwin [
"test_plotting" # Fatal Python error: Illegal instruction
];

View file

@ -1,32 +1,22 @@
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build inputs
, pdfminer-six
, pillow
, wand
# check inputs
, pytestCheckHook
, pytest-cov
, pytest-parallel
, flake8
, black
, isort
, pandas
, mypy
, pandas-stubs
, types-pillow
, jupyterlab
, nbexec
, pandas
, pandas-stubs
, pdfminer-six
, pillow
, pytest-parallel
, pytestCheckHook
, pythonOlder
, types-pillow
, wand
}:
let
buildPythonPackage rec {
pname = "pdfplumber";
version = "0.9.0";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
disabled = pythonOlder "3.7";
@ -38,6 +28,11 @@ buildPythonPackage {
hash = "sha256-cGTn1JTSp1YvksemjlvvToZcVauZ7GKINiNmG5f4zKg=";
};
postPatch = ''
substituteInPlace setup.cfg \
--replace "--cov=pdfplumber --cov-report xml:coverage.xml --cov-report term" ""
'';
propagatedBuildInputs = [
pdfminer-six
pillow
@ -49,18 +44,13 @@ buildPythonPackage {
'';
nativeCheckInputs = [
pytestCheckHook
pytest-cov
pytest-parallel
flake8
black
isort
pandas
mypy
pandas-stubs
types-pillow
jupyterlab
nbexec
pandas
pandas-stubs
pytest-parallel
pytestCheckHook
types-pillow
];
pythonImportsCheck = [
@ -73,7 +63,7 @@ buildPythonPackage {
];
meta = with lib; {
description = "Plumb a PDF for detailed information about each char, rectangle, line, et cetera and easily extract text and tables.";
description = "Plumb a PDF for detailed information about each char, rectangle, line, et cetera and easily extract text and tables";
homepage = "https://github.com/jsvine/pdfplumber";
changelog = "https://github.com/jsvine/pdfplumber/releases/tag/v${version}";
license = licenses.mit;