diff --git a/pkgs/development/python-modules/versioningit/default.nix b/pkgs/development/python-modules/versioningit/default.nix index 9abbf8bba33b..05dc14a79557 100644 --- a/pkgs/development/python-modules/versioningit/default.nix +++ b/pkgs/development/python-modules/versioningit/default.nix @@ -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 diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index feed5887e4be..0b56bf3763b0 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -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";