depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-postgres/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

53 lines
1 KiB
Nix

{
lib,
agate,
buildPythonPackage,
fetchFromGitHub,
dbt-adapters,
dbt-common,
dbt-core,
hatchling,
psycopg2,
pythonOlder,
}:
buildPythonPackage rec {
pname = "dbt-postgres";
version = "1.8.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "dbt-labs";
repo = "dbt-postgres";
rev = "refs/tags/v${version}";
hash = "sha256-E7Y2lY8aCiAZx5sLWwpOBLTrdOsCQAdWWJTvR2jGOaA=";
};
env.DBT_PSYCOPG2_NAME = "psycopg2";
build-system = [ hatchling ];
pythonRemoveDeps = [ "psycopg2-binary" ];
dependencies = [
agate
dbt-adapters
dbt-common
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 ];
};
}