From f4f95fbb0fadbbbb56a7cbef2a99f5b095fa2021 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Thu, 15 Jan 2026 11:08:21 +0000 Subject: [PATCH] python3Packages.sigstore: 4.0.0 -> 4.1.0 Diff: https://github.com/sigstore/sigstore-python/compare/v4.0.0...v4.1.0 Changelog: https://github.com/sigstore/sigstore-python/blob/4.1.0/CHANGELOG.md --- .../python-modules/sigstore/default.nix | 41 +++++++++++-------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/pkgs/development/python-modules/sigstore/default.nix b/pkgs/development/python-modules/sigstore/default.nix index b54fa72b51be..bf3422f6cdb7 100644 --- a/pkgs/development/python-modules/sigstore/default.nix +++ b/pkgs/development/python-modules/sigstore/default.nix @@ -1,20 +1,21 @@ { lib, - appdirs, buildPythonPackage, - cryptography, fetchFromGitHub, + + # build-system flit-core, + + # dependencies + appdirs, + cryptography, id, importlib-resources, - nix-update-script, platformdirs, - pretend, pyasn1, pydantic, pyjwt, pyopenssl, - pytestCheckHook, requests, rfc3161-client, rfc8785, @@ -24,10 +25,17 @@ sigstore-protobuf-specs, sigstore-rekor-types, tuf, + + # tests + pretend, + pytestCheckHook, writableTmpDirAsHomeHook, + + # passthru + nix-update-script, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "sigstore"; version = "4.1.0"; pyproject = true; @@ -35,32 +43,29 @@ buildPythonPackage rec { src = fetchFromGitHub { owner = "sigstore"; repo = "sigstore-python"; - tag = "v${version}"; + tag = "v${finalAttrs.version}"; hash = "sha256-Wt9ZoMHTiMlbAab9p8/WF38/OiyCaqHPS5R7/fTAfxw="; }; + build-system = [ flit-core ]; + pythonRelaxDeps = [ "sigstore-models" - "sigstore-rekor-types" - "rfc3161-client" - "cryptography" ]; - build-system = [ flit-core ]; - dependencies = [ appdirs cryptography id importlib-resources + platformdirs + pyasn1 pydantic pyjwt pyopenssl - pyasn1 - rfc8785 - rfc3161-client - platformdirs requests + rfc3161-client + rfc8785 rich securesystemslib sigstore-models @@ -100,9 +105,9 @@ buildPythonPackage rec { meta = { description = "Codesigning tool for Python packages"; homepage = "https://github.com/sigstore/sigstore-python"; - changelog = "https://github.com/sigstore/sigstore-python/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/sigstore/sigstore-python/blob/${finalAttrs.src.tag}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ bot-wxt1221 ]; mainProgram = "sigstore"; }; -} +})