Files
nixpkgs/pkgs/development/python-modules/dbt-redshift/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.0 KiB
Nix

{
lib,
agate,
boto3,
buildPythonPackage,
dbt-core,
dbt-postgres,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
redshift-connector,
setuptools,
}:
buildPythonPackage rec {
pname = "dbt-redshift";
version = "1.9.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-redshift";
tag = "v${version}";
hash = "sha256-ayt5KRH3jAoi7k+0yfk1ZSqG4qsM+zny8tDnWOWO5oA=";
};
pythonRelaxDeps = [
"boto3"
"redshift-connector"
];
build-system = [ setuptools ];
dependencies = [
agate
boto3
dbt-core
dbt-postgres
redshift-connector
];
nativeCheckInputs = [ pytestCheckHook ];
enabledTestPaths = [ "tests/unit" ];
pythonImportsCheck = [ "dbt.adapters.redshift" ];
meta = {
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 = lib.licenses.asl20;
};
}