2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2023-07-15 17:15:38 +00:00
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, cryptography
|
2023-05-24 13:37:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "edk2-pytool-library";
|
2023-08-04 22:07:22 +00:00
|
|
|
version = "0.15.4";
|
2023-05-24 13:37:59 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tianocore";
|
|
|
|
repo = "edk2-pytool-library";
|
|
|
|
rev = "v${version}";
|
2023-08-04 22:07:22 +00:00
|
|
|
hash = "sha256-jGZa1qfI/OybwgG2L4N1hICHpWZTufgElpl31EhU+O4=";
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
setuptools-scm
|
|
|
|
];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyasn1
|
|
|
|
pyasn1-modules
|
|
|
|
cryptography
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "edk2toollib" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python library package that supports UEFI development";
|
|
|
|
homepage = "https://github.com/tianocore/edk2-pytool-library";
|
|
|
|
changelog = "https://github.com/tianocore/edk2-pytool-library/releases/tag/v${version}";
|
|
|
|
license = licenses.bsd2Patent;
|
|
|
|
maintainers = with maintainers; [ nickcao ];
|
|
|
|
};
|
|
|
|
}
|