Unverified Commit fa436286 authored by annalee's avatar annalee
Browse files

python311Packages.redshift-connector: remove 'test' from pytest args; fix build

this change just no-ops the args added to pytest in setup.cfg to fix the
unit tests.

The python3.11 change
https://github.com/NixOS/nixpkgs/commit/b5eaf5b39eb8610fe44b1a4f116c9a0cc2e27f89
updated 2.0.911 -> 2.0.914 which pulled in this commit that modified
setup.cfg
https://github.com/aws/amazon-redshift-python-driver/commit/2e782578f27f2ce2635011770b008186012b274a
and broke the unit tests
parent 57372962
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,9 +27,9 @@ buildPythonPackage rec {
    hash = "sha256-fGOo9FgVMI6ayyB3EMN6RGThwWciShcBZzWTZWtOt8E=";
  };

  # disable test coverage
  # remove addops as they add test directory and coverage parameters to pytest
  postPatch = ''
    sed -i "/--cov/d" setup.cfg
    substituteInPlace setup.cfg --replace 'addopts =' 'no-opts ='
  '';

  propagatedBuildInputs = [