14 buildPythonPackage rec {
15 pname = "dbt-postgres";
19 disabled = pythonOlder "3.8";
21 src = fetchFromGitHub {
23 repo = "dbt-postgres";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-E7Y2lY8aCiAZx5sLWwpOBLTrdOsCQAdWWJTvR2jGOaA=";
28 env.DBT_PSYCOPG2_NAME = "psycopg2";
30 build-system = [ hatchling ];
32 pythonRemoveDeps = [ "psycopg2-binary" ];
42 # tests exist for the dbt tool but not for this package specifically
45 pythonImportsCheck = [ "dbt.adapters.postgres" ];
48 description = "Plugin enabling dbt to work with a Postgres database";
49 homepage = "https://github.com/dbt-labs/dbt-core";
50 license = licenses.asl20;
51 maintainers = with maintainers; [ tjni ];