2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, pythonOlder
|
2023-05-24 13:37:59 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, setuptools-scm
|
2023-07-15 17:15:38 +00:00
|
|
|
, pyasn1
|
|
|
|
, pyasn1-modules
|
|
|
|
, cryptography
|
2023-10-09 19:29:22 +00:00
|
|
|
, joblib
|
|
|
|
, gitpython
|
2024-01-25 14:12:00 +00:00
|
|
|
, sqlalchemy
|
2024-02-29 20:09:43 +00:00
|
|
|
, pygount
|
2023-05-24 13:37:59 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "edk2-pytool-library";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.21.3";
|
2023-10-09 19:29:22 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
2023-05-24 13:37:59 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tianocore";
|
|
|
|
repo = "edk2-pytool-library";
|
2024-01-02 11:29:13 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
hash = "sha256-tyDRHw3c5Kn9IXm5K7Qpn1xfmu5c3pb9D1mpeqo6SHg=";
|
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-10-09 19:29:22 +00:00
|
|
|
joblib
|
|
|
|
gitpython
|
2024-01-25 14:12:00 +00:00
|
|
|
sqlalchemy
|
2024-02-29 20:09:43 +00:00
|
|
|
pygount
|
2023-07-15 17:15:38 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
disabledTests = [
|
|
|
|
# requires network access
|
|
|
|
"test_basic_parse"
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
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 ];
|
2023-11-16 04:20:00 +00:00
|
|
|
platforms = platforms.linux;
|
2023-05-24 13:37:59 +00:00
|
|
|
};
|
|
|
|
}
|