nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 62 lines 1.1 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonOlder 5, asn1crypto 6, cffi 7, cryptography 8, ibm-sw-tpm2 9, pkg-config 10, pkgconfig 11, pycparser 12, pytestCheckHook 13, python 14, setuptools-scm 15, tpm2-tss 16}: 17 18buildPythonPackage rec { 19 pname = "tpm2-pytss"; 20 version = "1.1.0"; 21 disabled = pythonOlder "3.7"; 22 23 src = fetchPypi { 24 inherit pname version; 25 sha256 = "sha256-O0d1b99/V8b3embg8veerTrJGSVb/prlPVb7qSHErdQ="; 26 }; 27 28 nativeBuildInputs = [ 29 cffi 30 pkgconfig 31 # somehow propagating from pkgconfig does not work 32 pkg-config 33 setuptools-scm 34 ]; 35 36 buildInputs = [ 37 tpm2-tss 38 ]; 39 40 propagatedBuildInputs = [ 41 cffi 42 asn1crypto 43 cryptography 44 ]; 45 46 # https://github.com/tpm2-software/tpm2-pytss/issues/341 47 doCheck = false; 48 49 checkInputs = [ 50 ibm-sw-tpm2 51 pytestCheckHook 52 ]; 53 54 pythonImportsCheck = [ "tpm2_pytss" ]; 55 56 meta = with lib; { 57 homepage = "https://github.com/tpm2-software/tpm2-pytss"; 58 description = "TPM2 TSS Python bindings for Enhanced System API (ESYS)"; 59 license = licenses.bsd2; 60 maintainers = with maintainers; [ baloo ]; 61 }; 62}