1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, setuptools
5, setuptools-scm
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "edk2-pytool-library";
11 version = "0.15.0";
12 format = "pyproject";
13
14 src = fetchFromGitHub {
15 owner = "tianocore";
16 repo = "edk2-pytool-library";
17 rev = "v${version}";
18 hash = "sha256-YNXaptzsIlMXaZu8mFihsaQfmPALUcL47BFn4m8GMfY=";
19 };
20
21 nativeBuildInputs = [
22 setuptools
23 setuptools-scm
24 ];
25
26 nativeCheckInputs = [
27 pytestCheckHook
28 ];
29
30 env.SETUPTOOLS_SCM_PRETEND_VERSION = version;
31
32 pythonImportsCheck = [ "edk2toollib" ];
33
34 meta = with lib; {
35 description = "Python library package that supports UEFI development";
36 homepage = "https://github.com/tianocore/edk2-pytool-library";
37 changelog = "https://github.com/tianocore/edk2-pytool-library/releases/tag/v${version}";
38 license = licenses.bsd2Patent;
39 maintainers = with maintainers; [ nickcao ];
40 };
41}