2024-01-02 11:29:13 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, click
|
|
|
|
, dateutils
|
2024-02-29 20:09:43 +00:00
|
|
|
, dbt-postgres
|
|
|
|
, fetchFromGitHub
|
2024-01-02 11:29:13 +00:00
|
|
|
, hatchling
|
2024-04-21 15:54:59 +00:00
|
|
|
, pythonRelaxDepsHook
|
2024-02-29 20:09:43 +00:00
|
|
|
, hypothesis
|
2024-01-02 11:29:13 +00:00
|
|
|
, importlib-metadata
|
|
|
|
, jinja2
|
|
|
|
, jsonschema
|
|
|
|
, more-itertools
|
|
|
|
, pydantic
|
2024-02-29 20:09:43 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2024-01-02 11:29:13 +00:00
|
|
|
, pyyaml
|
|
|
|
, typing-extensions
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "dbt-semantic-interfaces";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.4.4";
|
2024-01-02 11:29:13 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-02-29 20:09:43 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dbt-labs";
|
2024-02-29 20:09:43 +00:00
|
|
|
repo = "dbt-semantic-interfaces";
|
2024-01-13 08:15:51 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-uvwcnOKjwxEmA+/QRGSRofpoE4jZzmE02mGSDLINrJw=";
|
2024-01-02 11:29:13 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDeps = [
|
|
|
|
"importlib-metadata"
|
|
|
|
];
|
|
|
|
|
|
|
|
build-system = [
|
2024-02-29 20:09:43 +00:00
|
|
|
hatchling
|
2024-04-21 15:54:59 +00:00
|
|
|
pythonRelaxDepsHook
|
2024-02-29 20:09:43 +00:00
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2024-01-02 11:29:13 +00:00
|
|
|
click
|
|
|
|
dateutils
|
|
|
|
importlib-metadata
|
|
|
|
jinja2
|
|
|
|
jsonschema
|
|
|
|
more-itertools
|
|
|
|
pydantic
|
|
|
|
pyyaml
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
hypothesis
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"dbt_semantic_interfaces"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-04-21 15:54:59 +00:00
|
|
|
description = "Shared interfaces used by dbt-core and MetricFlow projects";
|
2024-01-02 11:29:13 +00:00
|
|
|
homepage = "https://github.com/dbt-labs/dbt-semantic-interfaces";
|
2024-04-21 15:54:59 +00:00
|
|
|
changelog = "https://github.com/dbt-labs/dbt-semantic-interfaces/releases/tag/v${version}";
|
2024-01-02 11:29:13 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ pbsds ];
|
|
|
|
};
|
|
|
|
}
|