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
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user