f34ce41345
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
67 lines
1.3 KiB
Nix
67 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
agate,
|
|
colorama,
|
|
isodate,
|
|
jinja2,
|
|
jsonschema,
|
|
mashumaro,
|
|
pathspec,
|
|
protobuf,
|
|
python-dateutil,
|
|
requests,
|
|
typing-extensions,
|
|
pytest-mock,
|
|
pytest-xdist,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dbt-common";
|
|
version = "1.3.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbt-labs";
|
|
repo = "dbt-common";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3UjwQy257ks21fQV0uZNKu5EsuzjlIAEcVtRWkR9x/4=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
pythonRelaxDeps = [ "agate" ];
|
|
|
|
dependencies = [
|
|
agate
|
|
colorama
|
|
isodate
|
|
jinja2
|
|
jsonschema
|
|
mashumaro
|
|
pathspec
|
|
protobuf
|
|
python-dateutil
|
|
requests
|
|
typing-extensions
|
|
] ++ mashumaro.optional-dependencies.msgpack;
|
|
|
|
pythonImportsCheck = [ "dbt_common" ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-mock
|
|
pytest-xdist
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = {
|
|
description = "Shared common utilities for dbt-core and adapter implementations use";
|
|
homepage = "https://github.com/dbt-labs/dbt-common";
|
|
changelog = "https://github.com/dbt-labs/dbt-common/blob/${src.rev}/CHANGELOG.md";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ ];
|
|
};
|
|
}
|