mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-14 16:36:38 +01:00
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
47 lines
893 B
Nix
47 lines
893 B
Nix
{
|
|
lib,
|
|
agate,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
dbt-adapters,
|
|
dbt-common,
|
|
dbt-core,
|
|
hatchling,
|
|
psycopg2,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dbt-postgres";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbt-labs";
|
|
repo = "dbt-postgres";
|
|
tag = "v${version}";
|
|
hash = "sha256-lywWf78rluX17D5bcfehHd7X18tAdw3HZ65v440jETc=";
|
|
};
|
|
|
|
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 = {
|
|
description = "Plugin enabling dbt to work with a Postgres database";
|
|
homepage = "https://github.com/dbt-labs/dbt-core";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|