Skip to content

Commit cd9e846

Browse files
authored
python312Packages.dbt-common: fix build; 1.22.0 -> 1.23.0-unstable-2025-04-21; enable tests (#404807)
2 parents e2bc659 + 1cd9e76 commit cd9e846

File tree

1 file changed

+10
-14
lines changed

1 file changed

+10
-14
lines changed

pkgs/development/python-modules/dbt-common/default.nix

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
55

66
# build-system
77
hatchling,
@@ -28,14 +28,14 @@
2828

2929
buildPythonPackage rec {
3030
pname = "dbt-common";
31-
version = "1.22.0";
31+
version = "1.23.0-unstable-2025-04-21";
3232
pyproject = true;
3333

34-
# No tags on GitHub
35-
src = fetchPypi {
36-
pname = "dbt_common";
37-
inherit version;
38-
hash = "sha256-6cdTMVCCB6SNEUsQtzKUBnKuJgwfttl7o2+zBp8Fu5g=";
34+
src = fetchFromGitHub {
35+
owner = "dbt-labs";
36+
repo = pname;
37+
rev = "03e09c01f20573975e8e17776a4b7c9088b3f212"; # They don't tag releases
38+
hash = "sha256-KqnwlFZZRYuWRflMzjrqCPBnzY9q/pPhceM2DGqz5bw=";
3939
};
4040

4141
build-system = [ hatchling ];
@@ -46,6 +46,7 @@ buildPythonPackage rec {
4646
# 0.6.x -> 0.7.2 doesn't seem too risky at a glance
4747
# https://pypi.org/project/isodate/0.7.2/
4848
"isodate"
49+
"protobuf"
4950
];
5051

5152
dependencies = [
@@ -70,15 +71,10 @@ buildPythonPackage rec {
7071
];
7172

7273
disabledTests = [
73-
# Assertion errors (TODO: Notify upstream)
74-
"test_create_print_json"
75-
"test_events"
76-
"test_extra_dict_on_event"
74+
# flaky test: https://github.com/dbt-labs/dbt-common/issues/280
75+
"TestFindMatching"
7776
];
7877

79-
# No tests in the pypi archive
80-
doCheck = false;
81-
8278
pythonImportsCheck = [ "dbt_common" ];
8379

8480
meta = {

0 commit comments

Comments
 (0)