Unverified Commit bd3d760b authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

python3Packages.cassandra-driver: 3.29.2 -> 3.29.3 (#464382)

parents b0919c0b 9adb0847
Loading
Loading
Loading
Loading
+13 −23
Original line number Diff line number Diff line
@@ -6,7 +6,6 @@
  cython,
  eventlet,
  fetchFromGitHub,
  fetchpatch,
  geomet,
  gevent,
  gremlinpython,
@@ -17,7 +16,6 @@
  pytz,
  pyyaml,
  scales,
  six,
  sure,
  twisted,
  setuptools,
@@ -26,25 +24,16 @@

buildPythonPackage rec {
  pname = "cassandra-driver";
  version = "3.29.2";
  version = "3.29.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "datastax";
    repo = "python-driver";
    tag = version;
    hash = "sha256-RX9GLk2admzRasmP7LCwIfsJIt8TC/9rWhIcoTqS0qc=";
    hash = "sha256-VynrUc7gqAi061FU2ln4B1fK4NaSUcjSgH1i1JQpmvk=";
  };

  patches = [
    # https://github.com/datastax/python-driver/pull/1242
    (fetchpatch {
      name = "Maintain-compatibility-with-CPython-3.13.patch";
      url = "https://github.com/datastax/python-driver/commit/b144a84a1f97002c4545b335efaac719519cd9fa.patch";
      hash = "sha256-60ki6i1SiGxK+J4x/8voS7Hh2x249ykpjU9EMYKD8kc=";
    })
  ];

  pythonRelaxDeps = [ "geomet" ];

  build-system = [
@@ -56,10 +45,18 @@ buildPythonPackage rec {
  buildInputs = [ libev ];

  dependencies = [
    six
    geomet
  ];

  optional-dependencies = {
    cle = [ cryptography ];
    eventlet = [ eventlet ];
    gevent = [ gevent ];
    graph = [ gremlinpython ];
    metrics = [ scales ];
    twisted = [ twisted ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    pytz
@@ -75,6 +72,8 @@ buildPythonPackage rec {
    export CASS_DRIVER_BUILD_CONCURRENCY=$NIX_BUILD_CORES
  '';

  __darwinAllowLocalNetworking = true;

  # Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox,
  # also /etc/resolv.conf is referenced by some tests
  preCheck =
@@ -119,15 +118,6 @@ buildPythonPackage rec {
    "test_nts_token_performance"
  ];

  optional-dependencies = {
    cle = [ cryptography ];
    eventlet = [ eventlet ];
    gevent = [ gevent ];
    graph = [ gremlinpython ];
    metrics = [ scales ];
    twisted = [ twisted ];
  };

  meta = {
    description = "Python client driver for Apache Cassandra";
    homepage = "http://datastax.github.io/python-driver";