2023-07-13 22:02:06 -07:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
agate,
|
2024-02-23 20:19:44 +01:00
|
|
|
buildPythonPackage,
|
2024-07-05 23:45:27 +09:00
|
|
|
fetchFromGitHub,
|
|
|
|
dbt-adapters,
|
|
|
|
dbt-common,
|
2023-07-13 22:02:06 -07:00
|
|
|
dbt-core,
|
2024-07-05 23:45:27 +09:00
|
|
|
hatchling,
|
2023-07-13 22:02:06 -07:00
|
|
|
psycopg2,
|
2024-02-23 20:19:44 +01:00
|
|
|
pythonOlder,
|
2023-07-13 22:02:06 -07:00
|
|
|
}:
|
|
|
|
|
2024-07-05 23:45:27 +09:00
|
|
|
buildPythonPackage rec {
|
2023-07-13 22:02:06 -07:00
|
|
|
pname = "dbt-postgres";
|
2024-12-15 22:38:59 +00:00
|
|
|
version = "1.9.0";
|
2024-02-23 20:19:44 +01:00
|
|
|
pyproject = true;
|
2023-07-13 22:02:06 -07:00
|
|
|
|
2024-12-21 11:06:37 -08:00
|
|
|
disabled = pythonOlder "3.9";
|
2023-07-13 22:02:06 -07:00
|
|
|
|
2024-07-05 23:45:27 +09:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dbt-labs";
|
|
|
|
repo = "dbt-postgres";
|
2024-12-15 22:38:59 +00:00
|
|
|
tag = "v${version}";
|
|
|
|
hash = "sha256-lywWf78rluX17D5bcfehHd7X18tAdw3HZ65v440jETc=";
|
2024-07-05 23:45:27 +09:00
|
|
|
};
|
2023-07-13 22:02:06 -07:00
|
|
|
|
2024-07-05 23:45:27 +09:00
|
|
|
build-system = [ hatchling ];
|
|
|
|
|
|
|
|
pythonRemoveDeps = [ "psycopg2-binary" ];
|
2024-02-23 20:19:44 +01:00
|
|
|
|
2024-03-28 22:32:44 +01:00
|
|
|
dependencies = [
|
2023-07-13 22:02:06 -07:00
|
|
|
agate
|
2024-07-05 23:45:27 +09:00
|
|
|
dbt-adapters
|
|
|
|
dbt-common
|
2023-07-13 22:02:06 -07:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|