pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / development / python-modules / dbt-common / default.nix
blob182afb3c296d6a97134d1784efbca2ebf352437d
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   pythonOlder,
7   # build-system
8   hatchling,
10   # dependencies
11   agate,
12   colorama,
13   deepdiff,
14   isodate,
15   jinja2,
16   jsonschema,
17   mashumaro,
18   pathspec,
19   protobuf,
20   python-dateutil,
21   requests,
22   typing-extensions,
24   # tests
25   pytestCheckHook,
26   pytest-mock,
27   pytest-xdist,
28   numpy,
31 buildPythonPackage rec {
32   pname = "dbt-common";
33   version = "1.11.0";
34   pyproject = true;
36   disabled = pythonOlder "3.8";
38   src = fetchFromGitHub {
39     owner = "dbt-labs";
40     repo = "dbt-common";
41     # Unfortunatly, upstream doesn't tag commits on GitHub, and the pypi source
42     # doesn't include tests. TODO: Write an update script that will detect the
43     # version from `dbt_common/__about__.py`.
44     rev = "ed11c6ceb4f29d4a79489469309d9ce9dd1757e6";
45     hash = "sha256-JA6hFQwF7h1tXyCxBVKGgyevdTxyYeN3I/Bwy9uoC0Y=";
46   };
48   build-system = [ hatchling ];
50   pythonRelaxDeps = [
51     "agate"
52     "deepdiff"
53     "protobuf"
54   ];
56   dependencies = [
57     agate
58     colorama
59     deepdiff
60     isodate
61     jinja2
62     jsonschema
63     mashumaro
64     pathspec
65     protobuf
66     python-dateutil
67     requests
68     typing-extensions
69   ] ++ mashumaro.optional-dependencies.msgpack;
71   nativeCheckInputs = [
72     pytestCheckHook
73     pytest-xdist
74     pytest-mock
75   ];
76   disabledTests = [
77     # Assertion errors (TODO: Notify upstream)
78     "test_create_print_json"
79     "test_events"
80     "test_extra_dict_on_event"
81   ];
82   pythonImportsCheck = [ "dbt_common" ];
84   meta = {
85     description = "Shared common utilities for dbt-core and adapter implementations use";
86     homepage = "https://github.com/dbt-labs/dbt-common";
87     changelog = "https://github.com/dbt-labs/dbt-common/blob/${version}/CHANGELOG.md";
88     license = lib.licenses.asl20;
89     maintainers = [ ];
90   };