Unverified Commit 6eef3d72 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

python312Packages.versioningit: don't test with pydantic_1 (#351793)

parents 6e38fa81 4ab73135
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -20,7 +20,7 @@
buildPythonPackage rec {
  pname = "versioningit";
  version = "3.1.2";
  format = "pyproject";
  pyproject = true;

  disabled = pythonOlder "3.8";

@@ -29,13 +29,16 @@ buildPythonPackage rec {
    hash = "sha256-Tbg+2Z9WsH2DlAvuNEXKRsoSDRO2swTNtftE5apO3sA=";
  };

  nativeBuildInputs = [ hatchling ];
  build-system = [ hatchling ];

  propagatedBuildInputs =
  dependencies =
    [ packaging ]
    ++ lib.optionals (pythonOlder "3.10") [ importlib-metadata ]
    ++ lib.optionals (pythonOlder "3.11") [ tomli ];

  # AttributeError: type object 'CaseDetails' has no attribute 'model_validate_json'
  doCheck = lib.versionAtLeast pydantic.version "2";

  nativeCheckInputs = [
    pytestCheckHook
    build
+0 −4
Original line number Diff line number Diff line
@@ -335,10 +335,6 @@ let
        ];
      };

      versioningit = super.versioningit.overridePythonAttrs {
        doCheck = false;
      };

      # Pinned due to API changes ~1.0
      vultr = super.vultr.overridePythonAttrs (oldAttrs: rec {
        version = "0.1.2";