Merge pull request #268081 from a-n-n-a-l-e-e/dbt-python-fixes
python311Packages.dbt-semantic-interfaces: init at 0.2.2 , add dep to dbt-core; fix builds
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
, click
|
||||
, colorama
|
||||
, dbt-extractor
|
||||
, dbt-semantic-interfaces
|
||||
, hologram
|
||||
, idna
|
||||
, isodate
|
||||
@@ -60,6 +61,7 @@ buildPythonPackage rec {
|
||||
click
|
||||
colorama
|
||||
dbt-extractor
|
||||
dbt-semantic-interfaces
|
||||
hologram
|
||||
idna
|
||||
isodate
|
||||
|
||||
@@ -0,0 +1,62 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, click
|
||||
, dateutils
|
||||
, hatchling
|
||||
, importlib-metadata
|
||||
, jinja2
|
||||
, jsonschema
|
||||
, more-itertools
|
||||
, pydantic
|
||||
, pyyaml
|
||||
, typing-extensions
|
||||
, hypothesis
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "dbt-semantic-interfaces";
|
||||
version = "0.2.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dbt-labs";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-pnhmfj349uMjSsmdr53dY1Xur6huRKHiXWI7DXYK1gE=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
dateutils
|
||||
importlib-metadata
|
||||
jinja2
|
||||
jsonschema
|
||||
more-itertools
|
||||
pydantic
|
||||
pyyaml
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
hatchling
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
hypothesis
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"dbt_semantic_interfaces"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
changelog = "https://github.com/dbt-labs/dbt-semantic-interfaces/releases/tag/v${version}";
|
||||
description = "shared interfaces used by dbt-core and MetricFlow projects";
|
||||
homepage = "https://github.com/dbt-labs/dbt-semantic-interfaces";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ pbsds ];
|
||||
};
|
||||
}
|
||||
@@ -2634,6 +2634,8 @@ self: super: with self; {
|
||||
|
||||
dbt-redshift = callPackage ../development/python-modules/dbt-redshift { };
|
||||
|
||||
dbt-semantic-interfaces = callPackage ../development/python-modules/dbt-semantic-interfaces { };
|
||||
|
||||
dbt-snowflake = callPackage ../development/python-modules/dbt-snowflake { };
|
||||
|
||||
dbus-client-gen = callPackage ../development/python-modules/dbus-client-gen { };
|
||||
|
||||
Reference in New Issue
Block a user