5e9e1146e1
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
37 lines
704 B
Nix
37 lines
704 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, agate
|
|
, dbt-core
|
|
, psycopg2
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "dbt-postgres";
|
|
format = "setuptools";
|
|
|
|
inherit (dbt-core) version src;
|
|
|
|
sourceRoot = "source/plugins/postgres";
|
|
|
|
env.DBT_PSYCOPG2_NAME = "psycopg2";
|
|
|
|
propagatedBuildInputs = [
|
|
agate
|
|
dbt-core
|
|
psycopg2
|
|
];
|
|
|
|
# tests exist for the dbt tool but not for this package specifically
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"dbt.adapters.postgres"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Plugin enabling dbt to work with a Postgres database";
|
|
homepage = "https://github.com/dbt-labs/dbt-core";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ tjni ];
|
|
};
|
|
}
|