Unverified Commit 1ea4a72a authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

Merge pull request #268850 from a-n-n-a-l-e-e/redshift-fixes

python311Packages.redshift-connector: ignore pytest args from setup.cfg; fix build
parents 017e5588 a8e066ab
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@
, pyarrow
, pymysql
, pyodbc
, pyparsing
, pytestCheckHook
, pythonOlder
, redshift-connector
@@ -57,6 +58,7 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    moto
    pyparsing
    pytestCheckHook
  ];

+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 = [