From 6f9e2e2947c2a9d06a2ef95cee49164567f796f6 Mon Sep 17 00:00:00 2001 From: wxt <3264117476@qq.com> Date: Wed, 13 Nov 2024 18:35:13 +0800 Subject: [PATCH] python3Packages.tuf: 3.1.1 -> 5.1.0 --- .../python-modules/tuf/default.nix | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/tuf/default.nix b/pkgs/development/python-modules/tuf/default.nix index 984bd6f54c4b..f2fb03758fbd 100644 --- a/pkgs/development/python-modules/tuf/default.nix +++ b/pkgs/development/python-modules/tuf/default.nix @@ -12,7 +12,7 @@ buildPythonPackage rec { pname = "tuf"; - version = "3.1.1"; + version = "5.1.0"; pyproject = true; disabled = pythonOlder "3.8"; @@ -21,17 +21,12 @@ buildPythonPackage rec { owner = "theupdateframework"; repo = "python-tuf"; rev = "refs/tags/v${version}"; - hash = "sha256-HiF/b6aOhDhhQqYx/bjMXHABxmAJY4vkLlTheiL8zEo="; + hash = "sha256-Qv9SH4ObC7bgPLd2Wu5XynBddlW6pycwLwaKhZ+l61k="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "hatchling==" "hatchling>=" - ''; + build-system = [ hatchling ]; - nativeBuildInputs = [ hatchling ]; - - propagatedBuildInputs = [ + dependencies = [ requests securesystemslib ] ++ securesystemslib.optional-dependencies.pynacl ++ securesystemslib.optional-dependencies.crypto; @@ -47,14 +42,14 @@ buildPythonPackage rec { cd tests ''; - meta = with lib; { + meta = { description = "Python reference implementation of The Update Framework (TUF)"; homepage = "https://github.com/theupdateframework/python-tuf"; changelog = "https://github.com/theupdateframework/python-tuf/blob/v${version}/docs/CHANGELOG.md"; - license = with licenses; [ + license = with lib.licenses; [ asl20 mit ]; - maintainers = with maintainers; [ fab ]; + maintainers = with lib.maintainers; [ fab ]; }; }