From e45ffebad224d8007df8cf4d5009e27c4447652e Mon Sep 17 00:00:00 2001 From: Theodore Ni <3806110+tjni@users.noreply.github.com> Date: Thu, 13 Jul 2023 21:52:46 -0700 Subject: python310Packages.dbt-core: init at 1.5.3 Co-Authored-By: Mauricio Scheffer --- .../python-modules/dbt-core/default.nix | 91 ++++++++++++++++++++++ 1 file changed, 91 insertions(+) create mode 100644 pkgs/development/python-modules/dbt-core/default.nix (limited to 'pkgs/development/python-modules/dbt-core/default.nix') 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 ]; + }; +} -- cgit 1.4.1