mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-25 06:13:54 +00:00
494522a2a4
This continues where eaafc0f7ea
.
38 lines
718 B
Nix
38 lines
718 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, agate
|
|
, dbt-core
|
|
, psycopg2
|
|
}:
|
|
|
|
buildPythonPackage {
|
|
pname = "dbt-postgres";
|
|
format = "setuptools";
|
|
|
|
inherit (dbt-core) version src;
|
|
|
|
sourceRoot = "${dbt-core.src.name}/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 ];
|
|
};
|
|
}
|