Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 24.05-beta 47 lines 1.1 kB view raw
1{ 2 buildPythonPackage, 3 cryptography, 4 fetchFromGitHub, 5 lib, 6 pythonRelaxDepsHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "sev-snp-measure"; 12 version = "0.0.9"; 13 14 pyproject = true; 15 16 src = fetchFromGitHub { 17 owner = "virtee"; 18 repo = "sev-snp-measure"; 19 rev = "v${version}"; 20 hash = "sha256-efW4DMple26S3Jizc7yAvdPjVivyMJq4fEdkuToamGc="; 21 }; 22 23 nativeBuildInputs = [ 24 setuptools 25 pythonRelaxDepsHook 26 ]; 27 28 pythonRelaxDeps = [ "cryptography" ]; 29 30 propagatedBuildInputs = [ cryptography ]; 31 32 postPatch = '' 33 # See https://github.com/virtee/sev-snp-measure/pull/46 34 sed -i '/types-cryptography/d' setup.cfg requirements.txt 35 ''; 36 37 pythonImportsCheck = [ "sevsnpmeasure" ]; 38 39 meta = { 40 description = "Calculate AMD SEV/SEV-ES/SEV-SNP measurement for confidential computing"; 41 homepage = "https://github.com/virtee/sev-snp-measure"; 42 changelog = "https://github.com/virtee/sev-snp-measure/releases/tag/v${version}"; 43 license = lib.licenses.asl20; 44 maintainers = with lib.maintainers; [ msanft ]; 45 mainProgram = "sev-snp-measure"; 46 }; 47}