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

Changed files
+4 -2
pkgs
development
python-modules
awswrangler
redshift-connector
+2
pkgs/development/python-modules/awswrangler/default.nix
···
, pyarrow
, pymysql
, pyodbc
+
, pyparsing
, pytestCheckHook
, pythonOlder
, redshift-connector
···
nativeCheckInputs = [
moto
+
pyparsing
pytestCheckHook
];
+2 -2
pkgs/development/python-modules/redshift-connector/default.nix
···
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 = [