1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
64 lines
1.2 KiB
Nix
64 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
click,
|
|
dateutils,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
hypothesis,
|
|
importlib-metadata,
|
|
jinja2,
|
|
jsonschema,
|
|
more-itertools,
|
|
pydantic,
|
|
pytestCheckHook,
|
|
pyyaml,
|
|
typing-extensions,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "dbt-semantic-interfaces";
|
|
version = "0.9.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dbt-labs";
|
|
repo = "dbt-semantic-interfaces";
|
|
tag = "v${version}";
|
|
hash = "sha256-I/bMpqTaAHs0XnYOYjFRgXv3qB06LItkaSxtRjk55js=";
|
|
};
|
|
|
|
pythonRelaxDeps = [ "importlib-metadata" ];
|
|
|
|
build-system = [
|
|
hatchling
|
|
];
|
|
|
|
dependencies = [
|
|
click
|
|
dateutils
|
|
importlib-metadata
|
|
jinja2
|
|
jsonschema
|
|
more-itertools
|
|
pydantic
|
|
pyyaml
|
|
typing-extensions
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
hypothesis
|
|
];
|
|
|
|
pythonImportsCheck = [ "dbt_semantic_interfaces" ];
|
|
|
|
meta = {
|
|
description = "Shared interfaces used by dbt-core and MetricFlow projects";
|
|
homepage = "https://github.com/dbt-labs/dbt-semantic-interfaces";
|
|
changelog = "https://github.com/dbt-labs/dbt-semantic-interfaces/releases/tag/${src.tag}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ pbsds ];
|
|
};
|
|
}
|