mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-19 12:11:28 +00:00
python3Packages.sev-snp-measure: init at 0.0.9 (#303158)
* python3Packages.sev-snp-measure: init at 0.0.9 * Update pkgs/development/python-modules/sev-snp-measure/default.nix --------- Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
01bbd6cee7
commit
d5793186e8
46
pkgs/development/python-modules/sev-snp-measure/default.nix
Normal file
46
pkgs/development/python-modules/sev-snp-measure/default.nix
Normal file
|
@ -0,0 +1,46 @@
|
|||
{ buildPythonPackage
|
||||
, cryptography
|
||||
, fetchFromGitHub
|
||||
, lib
|
||||
, pythonRelaxDepsHook
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sev-snp-measure";
|
||||
version = "0.0.9";
|
||||
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "virtee";
|
||||
repo = "sev-snp-measure";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-efW4DMple26S3Jizc7yAvdPjVivyMJq4fEdkuToamGc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
pythonRelaxDepsHook
|
||||
];
|
||||
|
||||
pythonRelaxDeps = [ "cryptography" ];
|
||||
|
||||
propagatedBuildInputs = [ cryptography ];
|
||||
|
||||
postPatch = ''
|
||||
# See https://github.com/virtee/sev-snp-measure/pull/46
|
||||
sed -i '/types-cryptography/d' setup.cfg requirements.txt
|
||||
'';
|
||||
|
||||
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";
|
||||
};
|
||||
}
|
|
@ -13650,6 +13650,8 @@ self: super: with self; {
|
|||
|
||||
seventeentrack = callPackage ../development/python-modules/seventeentrack { };
|
||||
|
||||
sev-snp-measure = callPackage ../development/python-modules/sev-snp-measure { };
|
||||
|
||||
sexpdata = callPackage ../development/python-modules/sexpdata { };
|
||||
|
||||
sfepy = callPackage ../development/python-modules/sfepy { };
|
||||
|
|
Loading…
Reference in a new issue