nixpkgs/pkgs/development/python-modules/dbt-extractor/default.nix
Theodore Ni 9ae3fb40e3
python310Packages.dbt-extractor: init at 0.4.1
Co-Authored-By: Mauricio Scheffer <mauricioscheffer@gmail.com>
2023-07-23 11:03:46 -07:00

50 lines
1 KiB
Nix

{ stdenv
, lib
, buildPythonPackage
, fetchPypi
, rustPlatform
, libiconv
}:
buildPythonPackage rec {
pname = "dbt-extractor";
version = "0.4.1";
format = "setuptools";
src = fetchPypi {
pname = "dbt_extractor";
inherit version;
hash = "sha256-dbHGZWmewPH/zhuj13b3386AIVbyLnCnucjwtNfoD0I=";
};
cargoDeps = rustPlatform.importCargoLock {
lockFile = ./Cargo.lock;
outputHashes = {
"tree-sitter-jinja2-0.1.0" = "sha256-lzA2iq4AK0iNwkLvbIt7Jm5WGFbMPFDi6i4AFDm0FOU=";
};
};
nativeBuildInputs = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
buildInputs = lib.optionals stdenv.isDarwin [
libiconv
];
# no python tests exist
doCheck = false;
pythonImportsCheck = [
"dbt_extractor"
];
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";
license = licenses.asl20;
maintainers = with maintainers; [ mausch tjni ];
};
}