diff options
author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-13 21:52:46 -0700 |
---|---|---|
committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2023-07-23 11:03:46 -0700 |
commit | e45ffebad224d8007df8cf4d5009e27c4447652e (patch) | |
tree | e77ea1b51bd548134e95ed7fc7f288e6c4f50c22 /pkgs/development/python-modules/dbt-core/default.nix | |
parent | 9ae3fb40e31e819f4dbcca9a5f33e8f75e58dc9d (diff) |
python310Packages.dbt-core: init at 1.5.3
Co-Authored-By: Mauricio Scheffer <mauricioscheffer@gmail.com>
Diffstat (limited to 'pkgs/development/python-modules/dbt-core/default.nix')
-rw-r--r-- | pkgs/development/python-modules/dbt-core/default.nix | 91 |
1 files changed, 91 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/dbt-core/default.nix b/pkgs/development/python-modules/dbt-core/default.nix new file mode 100644 index 0000000000000..f522cb1d239d8 --- /dev/null +++ b/pkgs/development/python-modules/dbt-core/default.nix @@ -0,0 +1,91 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, agate +, cffi +, click +, colorama +, dbt-extractor +, hologram +, idna +, isodate +, jinja2 +, logbook +, mashumaro +, minimal-snowplow-tracker +, networkx +, packaging +, pathspec +, protobuf +, pythonRelaxDepsHook +, pytz +, pyyaml +, requests +, sqlparse +, typing-extensions +, urllib3 +, werkzeug +}: + +buildPythonPackage rec { + pname = "dbt-core"; + version = "1.5.3"; + format = "setuptools"; + + src = fetchFromGitHub { + owner = "dbt-labs"; + repo = pname; + rev = "refs/tags/v${version}"; + hash = "sha256-ZgP11fVMtXpzo9QaTkejvKl0LzCAkIyGBMcOquBirxQ="; + }; + + sourceRoot = "source/core"; + + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + pythonRelaxDeps = [ + "agate" + "click" + "mashumaro" + "networkx" + ]; + + propagatedBuildInputs = [ + agate + cffi + click + colorama + dbt-extractor + hologram + idna + isodate + jinja2 + logbook + mashumaro + minimal-snowplow-tracker + networkx + packaging + pathspec + protobuf + pytz + pyyaml + requests + sqlparse + typing-extensions + urllib3 + werkzeug + ] ++ mashumaro.optional-dependencies.msgpack; + + # tests exist for the dbt tool but not for this package specifically + doCheck = false; + + meta = with lib; { + description = "Enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications"; + homepage = "https://github.com/dbt-labs/dbt-core"; + changelog = "https://github.com/dbt-labs/dbt-core/blob/v${version}/CHANGELOG.md"; + license = licenses.asl20; + maintainers = with maintainers; [ mausch tjni ]; + }; +} |