Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, setuptools 5, setuptools-scm 6, pyasn1 7, pyasn1-modules 8, cryptography 9, pytestCheckHook 10}: 11 12buildPythonPackage rec { 13 pname = "edk2-pytool-library"; 14 version = "0.15.2"; 15 format = "pyproject"; 16 17 src = fetchFromGitHub { 18 owner = "tianocore"; 19 repo = "edk2-pytool-library"; 20 rev = "v${version}"; 21 hash = "sha256-gadFpFDHfiZ0vbUIEODu4SUL5SSsukdThxqP2ik5adI="; 22 }; 23 24 nativeBuildInputs = [ 25 setuptools 26 setuptools-scm 27 ]; 28 29 propagatedBuildInputs = [ 30 pyasn1 31 pyasn1-modules 32 cryptography 33 ]; 34 35 nativeCheckInputs = [ 36 pytestCheckHook 37 ]; 38 39 env.SETUPTOOLS_SCM_PRETEND_VERSION = version; 40 41 pythonImportsCheck = [ "edk2toollib" ]; 42 43 meta = with lib; { 44 description = "Python library package that supports UEFI development"; 45 homepage = "https://github.com/tianocore/edk2-pytool-library"; 46 changelog = "https://github.com/tianocore/edk2-pytool-library/releases/tag/v${version}"; 47 license = licenses.bsd2Patent; 48 maintainers = with maintainers; [ nickcao ]; 49 }; 50}