depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

65 lines
1.3 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, click
, dateutils
, hatchling
, importlib-metadata
, jinja2
, jsonschema
, more-itertools
, pydantic
, pyyaml
, typing-extensions
, hypothesis
, dbt-postgres
}:
buildPythonPackage rec {
pname = "dbt-semantic-interfaces";
version = "0.4.2";
pyproject = true;
src = fetchFromGitHub {
owner = "dbt-labs";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-Q3aKUyXB+HzPCpwbJ66zDv92n04Gb0w7ivWfga3UX3s=";
};
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 ];
# https://github.com/dbt-labs/dbt-semantic-interfaces/issues/134
broken = versionAtLeast pydantic.version "2";
};
}