about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2023-11-21 17:59:41 +0000
committerGitHub <noreply@github.com>2023-11-21 17:59:41 +0000
commit1ea4a72aea69e4d44ee7635a7d3a5103476bf938 (patch)
tree4f99681c56e4e3ec13311896f78b311e360481a2
parent017e5588e2af4558420fa67ce7b04c6901db7286 (diff)
parenta8e066abd642485b0cbb670be8eda0f475bd35cb (diff)
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
-rw-r--r--pkgs/development/python-modules/awswrangler/default.nix2
-rw-r--r--pkgs/development/python-modules/redshift-connector/default.nix4
2 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/awswrangler/default.nix b/pkgs/development/python-modules/awswrangler/default.nix
index 54ad818bb8a19..e8680180571e3 100644
--- a/pkgs/development/python-modules/awswrangler/default.nix
+++ b/pkgs/development/python-modules/awswrangler/default.nix
@@ -16,6 +16,7 @@
 , pyarrow
 , pymysql
 , pyodbc
+, pyparsing
 , pytestCheckHook
 , pythonOlder
 , redshift-connector
@@ -57,6 +58,7 @@ buildPythonPackage rec {
 
   nativeCheckInputs = [
     moto
+    pyparsing
     pytestCheckHook
   ];
 
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 = [