diff options
Diffstat (limited to 'pkgs/development/python-modules/dbt-common/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/dbt-common/default.nix | 23 |
1 files changed, 10 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/dbt-common/default.nix b/pkgs/development/python-modules/dbt-common/default.nix index 1ee4ca70b6c6..334c2bd37b55 100644 --- a/pkgs/development/python-modules/dbt-common/default.nix +++ b/pkgs/development/python-modules/dbt-common/default.nix @@ -1,8 +1,7 @@ { lib, - fetchFromGitHub, buildPythonPackage, - pythonOlder, + fetchPypi, # build-system hatchling, @@ -29,19 +28,14 @@ buildPythonPackage rec { pname = "dbt-common"; - version = "1.14.0"; + version = "1.22.0"; pyproject = true; - disabled = pythonOlder "3.9"; - - src = fetchFromGitHub { - owner = "dbt-labs"; - repo = "dbt-common"; - # Unfortunately, upstream doesn't tag commits on GitHub, and the pypi source - # doesn't include tests. TODO: Write an update script that will detect the - # version from `dbt_common/__about__.py`. - rev = "965ad815f0dd546678d2595a3010d81f344f8b73"; - hash = "sha256-63gWkETi52uOrO0FTPwM831UHECqcyCtb7wVHQuujnc="; + # No tags on GitHub + src = fetchPypi { + pname = "dbt_common"; + inherit version; + hash = "sha256-6cdTMVCCB6SNEUsQtzKUBnKuJgwfttl7o2+zBp8Fu5g="; }; build-system = [ hatchling ]; @@ -82,6 +76,9 @@ buildPythonPackage rec { "test_extra_dict_on_event" ]; + # No tests in the pypi archive + doCheck = false; + pythonImportsCheck = [ "dbt_common" ]; meta = { |
