1{ lib 2, buildPythonPackage 3, agate 4, dbt-core 5, psycopg2 6}: 7 8buildPythonPackage { 9 pname = "dbt-postgres"; 10 format = "setuptools"; 11 12 inherit (dbt-core) version src; 13 14 sourceRoot = "${dbt-core.src.name}/plugins/postgres"; 15 16 env.DBT_PSYCOPG2_NAME = "psycopg2"; 17 18 propagatedBuildInputs = [ 19 agate 20 dbt-core 21 psycopg2 22 ]; 23 24 # tests exist for the dbt tool but not for this package specifically 25 doCheck = false; 26 27 pythonImportsCheck = [ 28 "dbt.adapters.postgres" 29 ]; 30 31 meta = with lib; { 32 description = "Plugin enabling dbt to work with a Postgres database"; 33 homepage = "https://github.com/dbt-labs/dbt-core"; 34 license = licenses.asl20; 35 maintainers = with maintainers; [ tjni ]; 36 }; 37}