anchor.diff:  , sqlalchemy
   , tenacity
   , typing-extensions
  +, scikit-learn
   }:
   
   buildPythonPackage rec {
     pname = "apache-beam";
  -  version = "2.37.0";
  -  disabled = pythonAtLeast "3.10";
  +  version = "2.40.0";
   
     src = fetchFromGitHub {
       owner = "apache";
       repo = "beam";
       rev = "v${version}";
  -    sha256 = "sha256-FmfTxRLqXUHhhAZIxCRx2+phX0bmU5rIHaftBU4yBJY=";
  +    sha256 = "sha256-0S7Dj6PMSbZkEAY6ZLUpKVfe/tFxsq60TTAFj0Qhtv0=";
     };
  -
  -  patches = [
  -    # patch in the pyarrow.Table.to_batches(max_chunksize=...) argument fix
  -    (fetchpatch {
  -      url = "https://github.com/apache/beam/commit/2418a14ee99ff490d1c82944043f97f37ec97a85.patch";
  -      sha256 = "sha256-G8ARBBf7nmF46P2ncnlteGFnPWq5iCqZDfuaosre9jY=";
  -      stripLen = 2;
  -    })
  -  ];
   
     # See https://github.com/NixOS/nixpkgs/issues/156957.
     postPatch = ''
       substituteInPlace setup.py \
         --replace "dill>=0.3.1.1,<0.3.2" "dill" \
  -      --replace "httplib2>=0.8,<0.20.0" "httplib2" \
  -      --replace "pyarrow>=0.15.1,<7.0.0" "pyarrow"
  +      --replace "pyarrow>=0.15.1,<8.0.0" "pyarrow"
     '';
   
     sourceRoot = "source/sdks/python";
  
positive.code:     # different runners - I don't expect them to help debugging these
      # when running via our (= custom from their PoV) testing infra.
      "test_with_main_session"
    ];
  
    meta = with lib; {
  
negative.code:     pytestCheckHook
      pyyaml
      requests-mock
      scikit-learn
      sqlalchemy
      tenacity
    ];
  