1{ 2 buildPythonPackage, 3 cryptography, 4 fetchFromGitHub, 5 lib, 6 setuptools, 7}: 8 9buildPythonPackage rec { 10 pname = "sev-snp-measure"; 11 version = "0.0.12"; 12 13 pyproject = true; 14 15 src = fetchFromGitHub { 16 owner = "virtee"; 17 repo = "sev-snp-measure"; 18 tag = "v${version}"; 19 hash = "sha256-UcXU6rNjcRN1T+iWUNrqeJCkSa02WU1/pBwLqHVPRyw="; 20 }; 21 22 nativeBuildInputs = [ 23 setuptools 24 ]; 25 26 pythonRelaxDeps = [ "cryptography" ]; 27 28 propagatedBuildInputs = [ cryptography ]; 29 30 pythonImportsCheck = [ "sevsnpmeasure" ]; 31 32 meta = { 33 description = "Calculate AMD SEV/SEV-ES/SEV-SNP measurement for confidential computing"; 34 homepage = "https://github.com/virtee/sev-snp-measure"; 35 changelog = "https://github.com/virtee/sev-snp-measure/releases/tag/${src.tag}"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ msanft ]; 38 mainProgram = "sev-snp-measure"; 39 }; 40}