python312Packages.dbt-common: fix build; 1.22.0 -> 1.23.0-unstable-2025-04-21; enable tests (#404807)

authored by Peder Bergebakken Sundt and committed by GitHub cd9e8468 e2bc659d

+10 -14
+10 -14
pkgs/development/python-modules/dbt-common/default.nix
··· 1 1 { 2 2 lib, 3 3 buildPythonPackage, 4 - fetchPypi, 4 + fetchFromGitHub, 5 5 6 6 # build-system 7 7 hatchling, ··· 28 28 29 29 buildPythonPackage rec { 30 30 pname = "dbt-common"; 31 - version = "1.22.0"; 31 + version = "1.23.0-unstable-2025-04-21"; 32 32 pyproject = true; 33 33 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="; 39 39 }; 40 40 41 41 build-system = [ hatchling ]; ··· 46 46 # 0.6.x -> 0.7.2 doesn't seem too risky at a glance 47 47 # https://pypi.org/project/isodate/0.7.2/ 48 48 "isodate" 49 + "protobuf" 49 50 ]; 50 51 51 52 dependencies = [ ··· 70 71 ]; 71 72 72 73 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" 77 76 ]; 78 - 79 - # No tests in the pypi archive 80 - doCheck = false; 81 77 82 78 pythonImportsCheck = [ "dbt_common" ]; 83 79