summary refs log tree commit diff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-11-21 01:29:18 +0000
committerannalee <150648636+a-n-n-a-l-e-e@users.noreply.github.com>2023-11-21 02:47:09 +0000
commitfa436286e6704a99e37e17eef3987fb77c330f8f (patch)
treefedb4c54950268d9c0bdf920a91c7f3836561873 /pkgs/development/python-modules
parent573729627d74f5592ad7ae38926eb0ecbdee642d (diff)
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
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/redshift-connector/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/redshift-connector/default.nix b/pkgs/development/python-modules/redshift-connector/default.nix
index 7bf21823e7bb8..4bd4b3c146190 100644
--- a/pkgs/development/python-modules/redshift-connector/default.nix
+++ b/pkgs/development/python-modules/redshift-connector/default.nix
@@ -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 = [