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
This commit is contained in:
commit
1ea4a72aea
2 changed files with 4 additions and 2 deletions
|
@ -16,6 +16,7 @@
|
||||||
, pyarrow
|
, pyarrow
|
||||||
, pymysql
|
, pymysql
|
||||||
, pyodbc
|
, pyodbc
|
||||||
|
, pyparsing
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, redshift-connector
|
, redshift-connector
|
||||||
|
@ -57,6 +58,7 @@ buildPythonPackage rec {
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
moto
|
moto
|
||||||
|
pyparsing
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -27,9 +27,9 @@ buildPythonPackage rec {
|
||||||
hash = "sha256-fGOo9FgVMI6ayyB3EMN6RGThwWciShcBZzWTZWtOt8E=";
|
hash = "sha256-fGOo9FgVMI6ayyB3EMN6RGThwWciShcBZzWTZWtOt8E=";
|
||||||
};
|
};
|
||||||
|
|
||||||
# disable test coverage
|
# remove addops as they add test directory and coverage parameters to pytest
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed -i "/--cov/d" setup.cfg
|
substituteInPlace setup.cfg --replace 'addopts =' 'no-opts ='
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
|
|
Loading…
Reference in a new issue