python310Packages.dbt-redshift: init at 1.5.8
This commit is contained in:
parent
b02c1afb9b
commit
354ecddc47
2 changed files with 63 additions and 0 deletions
61
pkgs/development/python-modules/dbt-redshift/default.nix
Normal file
61
pkgs/development/python-modules/dbt-redshift/default.nix
Normal file
|
@ -0,0 +1,61 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, agate
|
||||
, boto3
|
||||
, dbt-core
|
||||
, dbt-postgres
|
||||
, pytestCheckHook
|
||||
, pythonRelaxDepsHook
|
||||
, redshift-connector
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dbt-redshift";
|
||||
version = "1.5.8";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbt-labs";
|
||||
repo = pname;
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-T7cNszIroOT8TNfOzZpdJDR1+5ybhkXvyvvM5zokVgo=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [
|
||||
"boto3"
|
||||
"redshift-connector"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
agate
|
||||
boto3
|
||||
dbt-core
|
||||
dbt-postgres
|
||||
redshift-connector
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pytestFlagsArray = [
|
||||
"tests/unit"
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dbt.adapters.redshift"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plugin enabling dbt to work with Amazon Redshift";
|
||||
homepage = "https://github.com/dbt-labs/dbt-redshift";
|
||||
changelog = "https://github.com/dbt-labs/dbt-redshift/blob/${version}/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ tjni ];
|
||||
};
|
||||
}
|
|
@ -2473,6 +2473,8 @@ self: super: with self; {
|
|||
|
||||
dbt-postgres = callPackage ../development/python-modules/dbt-postgres { };
|
||||
|
||||
dbt-redshift = callPackage ../development/python-modules/dbt-redshift { };
|
||||
|
||||
dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { };
|
||||
|
||||
dbus-deviation = callPackage ../development/python-modules/dbus-deviation { };
|
||||
|
|
Loading…
Reference in a new issue