depot/third_party/nixpkgs/pkgs/development/python-modules/sev-snp-measure/default.nix
Default email 98eb3e9ef5 Project import generated by Copybara.
GitOrigin-RevId: 00d80d13810dbfea8ab4ed1009b09100cca86ba8
2024-07-01 15:47:52 +00:00

42 lines
970 B
Nix

{
buildPythonPackage,
cryptography,
fetchFromGitHub,
lib,
pythonRelaxDepsHook,
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
pythonRelaxDepsHook
];
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";
};
}