1a04744f74
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
54 lines
1.0 KiB
Nix
54 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
agate,
|
|
boto3,
|
|
buildPythonPackage,
|
|
dbt-core,
|
|
dbt-postgres,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
redshift-connector,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dbt-redshift";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbt-labs";
|
|
repo = "dbt-redshift";
|
|
tag = "v${version}";
|
|
hash = "sha256-ayt5KRH3jAoi7k+0yfk1ZSqG4qsM+zny8tDnWOWO5oA=";
|
|
};
|
|
|
|
pythonRelaxDeps = [
|
|
"boto3"
|
|
"redshift-connector"
|
|
];
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
agate
|
|
boto3
|
|
dbt-core
|
|
dbt-postgres
|
|
redshift-connector
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [ "tests/unit" ];
|
|
|
|
pythonImportsCheck = [ "dbt.adapters.redshift" ];
|
|
|
|
meta = {
|
|
description = "Plugin enabling dbt to work with Amazon Redshift";
|
|
homepage = "https://github.com/dbt-labs/dbt-redshift";
|
|
changelog = "https://github.com/dbt-labs/dbt-redshift/blob/${version}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|