nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 53 lines 1.0 kB view raw
1{ 2 lib, 3 agate, 4 boto3, 5 buildPythonPackage, 6 dbt-core, 7 dbt-postgres, 8 fetchFromGitHub, 9 pytestCheckHook, 10 redshift-connector, 11 setuptools, 12}: 13 14buildPythonPackage rec { 15 pname = "dbt-redshift"; 16 version = "1.9.0"; 17 pyproject = true; 18 19 src = fetchFromGitHub { 20 owner = "dbt-labs"; 21 repo = "dbt-redshift"; 22 tag = "v${version}"; 23 hash = "sha256-ayt5KRH3jAoi7k+0yfk1ZSqG4qsM+zny8tDnWOWO5oA="; 24 }; 25 26 pythonRelaxDeps = [ 27 "boto3" 28 "redshift-connector" 29 ]; 30 31 build-system = [ setuptools ]; 32 33 dependencies = [ 34 agate 35 boto3 36 dbt-core 37 dbt-postgres 38 redshift-connector 39 ]; 40 41 nativeCheckInputs = [ pytestCheckHook ]; 42 43 enabledTestPaths = [ "tests/unit" ]; 44 45 pythonImportsCheck = [ "dbt.adapters.redshift" ]; 46 47 meta = { 48 description = "Plugin enabling dbt to work with Amazon Redshift"; 49 homepage = "https://github.com/dbt-labs/dbt-redshift"; 50 changelog = "https://github.com/dbt-labs/dbt-redshift/blob/${version}/CHANGELOG.md"; 51 license = lib.licenses.asl20; 52 }; 53}