2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
click,
|
|
|
|
dateutils,
|
|
|
|
dbt-postgres,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
pythonRelaxDepsHook,
|
|
|
|
hypothesis,
|
|
|
|
importlib-metadata,
|
|
|
|
jinja2,
|
|
|
|
jsonschema,
|
|
|
|
more-itertools,
|
|
|
|
pydantic,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
pyyaml,
|
|
|
|
typing-extensions,
|
2024-01-02 11:29:13 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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-06-05 15:53:02 +00:00
|
|
|
pythonRelaxDeps = [ "importlib-metadata" ];
|
2024-04-21 15:54:59 +00:00
|
|
|
|
|
|
|
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
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "dbt_semantic_interfaces" ];
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|