mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
python310Packages.redshift-connector: init at 2.0.910
This commit is contained in:
parent
35b2d417c3
commit
577fa81532
2 changed files with 64 additions and 0 deletions
|
@ -0,0 +1,62 @@
|
|||
{ beautifulsoup4
|
||||
, boto3
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, lxml
|
||||
, packaging
|
||||
, pytest-mock
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, requests
|
||||
, scramp
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "redshift-connector";
|
||||
version = "2.0.910";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aws";
|
||||
repo = "amazon-redshift-python-driver";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-24yI6pXSHxhT30N3rJXAMtpCOhhGsBuDrwx9jMO1FW0=";
|
||||
};
|
||||
|
||||
# disable test coverage
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" setup.cfg
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [
|
||||
beautifulsoup4
|
||||
boto3
|
||||
lxml
|
||||
packaging
|
||||
pytz
|
||||
requests
|
||||
scramp
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
# integration tests require a Redshift cluster
|
||||
pytestFlagsArray = [ "test/unit" ];
|
||||
|
||||
__darwinAllowLocalNetworking = true; # required for tests
|
||||
|
||||
meta = {
|
||||
description = "Redshift interface library";
|
||||
homepage = "https://github.com/aws/amazon-redshift-python-driver";
|
||||
changelog = "https://github.com/aws/amazon-redshift-python-driver/releases/tag/v${version}";
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = with lib.maintainers; [ mcwitt ];
|
||||
};
|
||||
}
|
|
@ -9848,6 +9848,8 @@ self: super: with self; {
|
|||
|
||||
rednose = callPackage ../development/python-modules/rednose { };
|
||||
|
||||
redshift-connector = callPackage ../development/python-modules/redshift-connector { };
|
||||
|
||||
reedsolo = callPackage ../development/python-modules/reedsolo { };
|
||||
|
||||
reflink = callPackage ../development/python-modules/reflink { };
|
||||
|
|
Loading…
Reference in a new issue