2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
libiconv,
|
|
|
|
pythonOlder,
|
|
|
|
rustPlatform,
|
2023-08-04 22:07:22 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dbt-extractor";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.5.1";
|
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "dbt_extractor";
|
|
|
|
inherit version;
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-zV2VV2qN6kGQJAqvmTajf9dLS3kTymmjw2j8RHK7fhM=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
cargoDeps = rustPlatform.importCargoLock {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
2024-02-29 20:09:43 +00:00
|
|
|
"tree-sitter-jinja2-0.2.0" = "sha256-Hfw85IcxwqFDKjkUxU+Zd9vyL7gaE0u5TZGKol2I9qg=";
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
rustPlatform.cargoSetupHook
|
|
|
|
rustPlatform.maturinBuildHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
# no python tests exist
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dbt_extractor" ];
|
2023-08-04 22:07:22 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool that processes the most common jinja value templates in dbt model files";
|
|
|
|
homepage = "https://github.com/dbt-labs/dbt-extractor";
|
2024-02-29 20:09:43 +00:00
|
|
|
changelog = "https://github.com/dbt-labs/dbt-extractor/blob/main/CHANGELOG.md";
|
2023-08-04 22:07:22 +00:00
|
|
|
license = licenses.asl20;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
mausch
|
|
|
|
tjni
|
|
|
|
];
|
2023-08-04 22:07:22 +00:00
|
|
|
};
|
|
|
|
}
|