Loading
+10 −13
Original line number Diff line number Diff line
{
  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 = {