depot/third_party/nixpkgs/pkgs/development/python-modules/dbt-semantic-interfaces/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

62 lines
1.1 KiB
Nix

{ 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 ];
};
}