depot/third_party/nixpkgs/pkgs/development/python-modules/sev-snp-measure/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

40 lines
923 B
Nix

{
buildPythonPackage,
cryptography,
fetchFromGitHub,
lib,
setuptools,
}:
buildPythonPackage rec {
pname = "sev-snp-measure";
version = "0.0.11";
pyproject = true;
src = fetchFromGitHub {
owner = "virtee";
repo = "sev-snp-measure";
rev = "refs/tags/v${version}";
hash = "sha256-M+d9uIAQvEmEsdhhjlwHbhB2RhlaGjphN4ov2ipzCFY=";
};
nativeBuildInputs = [
setuptools
];
pythonRelaxDeps = [ "cryptography" ];
propagatedBuildInputs = [ cryptography ];
pythonImportsCheck = [ "sevsnpmeasure" ];
meta = {
description = "Calculate AMD SEV/SEV-ES/SEV-SNP measurement for confidential computing";
homepage = "https://github.com/virtee/sev-snp-measure";
changelog = "https://github.com/virtee/sev-snp-measure/releases/tag/v${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ msanft ];
mainProgram = "sev-snp-measure";
};
}