From dd84201d6e44c19197357452f58f7603ee677a91 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 12 Nov 2025 12:53:30 +0000 Subject: [PATCH] python3Packages.in-toto-attestation: init at 0.9.3 --- .../in-toto-attestation/default.nix | 44 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 46 insertions(+) create mode 100644 pkgs/development/python-modules/in-toto-attestation/default.nix diff --git a/pkgs/development/python-modules/in-toto-attestation/default.nix b/pkgs/development/python-modules/in-toto-attestation/default.nix new file mode 100644 index 000000000000..44d46570a88d --- /dev/null +++ b/pkgs/development/python-modules/in-toto-attestation/default.nix @@ -0,0 +1,44 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + + # build-system + hatchling, + + # dependencies + protobuf, +}: + +buildPythonPackage rec { + pname = "in-toto-attestation"; + version = "0.9.3"; + pyproject = true; + + # Tags on GitHub do not match the Pypi versions + src = fetchPypi { + pname = "in_toto_attestation"; + inherit version; + hash = "sha256-zAz5dBfZSVO5/ubp1BWhHFm01HzuTxN0b/6TWyjj6MQ="; + }; + + build-system = [ + hatchling + ]; + + dependencies = [ + protobuf + ]; + + pythonImportsCheck = [ "in_toto_attestation" ]; + + # No tests in the Pypi archive + doCheck = false; + + meta = { + description = "Python implementation of in-toto attestations"; + homepage = "https://github.com/in-toto/attestation/tree/main/python"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ GaetanLepage ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ba89f00430b1..528ea1a3185a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7142,6 +7142,8 @@ self: super: with self; { in-place = callPackage ../development/python-modules/in-place { }; + in-toto-attestation = callPackage ../development/python-modules/in-toto-attestation { }; + incomfort-client = callPackage ../development/python-modules/incomfort-client { }; incremental = callPackage ../development/python-modules/incremental { };