mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
python312Packages.dbt-postgres: fix build
This commit is contained in:
parent
a570a4f7f9
commit
e560bf2c7f
@ -2,28 +2,39 @@
|
||||
lib,
|
||||
agate,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
dbt-adapters,
|
||||
dbt-common,
|
||||
dbt-core,
|
||||
hatchling,
|
||||
psycopg2,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
buildPythonPackage rec {
|
||||
pname = "dbt-postgres";
|
||||
version = "1.8.2";
|
||||
pyproject = true;
|
||||
|
||||
inherit (dbt-core) version src;
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
sourceRoot = "${dbt-core.src.name}/plugins/postgres";
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbt-labs";
|
||||
repo = "dbt-postgres";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-E7Y2lY8aCiAZx5sLWwpOBLTrdOsCQAdWWJTvR2jGOaA=";
|
||||
};
|
||||
|
||||
env.DBT_PSYCOPG2_NAME = "psycopg2";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
build-system = [ hatchling ];
|
||||
|
||||
pythonRemoveDeps = [ "psycopg2-binary" ];
|
||||
|
||||
dependencies = [
|
||||
agate
|
||||
dbt-adapters
|
||||
dbt-common
|
||||
dbt-core
|
||||
psycopg2
|
||||
];
|
||||
|
Loading…
Reference in New Issue
Block a user