c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
65 lines
1.2 KiB
Nix
65 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, setuptools-scm
|
|
, pyasn1
|
|
, pyasn1-modules
|
|
, cryptography
|
|
, joblib
|
|
, gitpython
|
|
, sqlalchemy
|
|
, pygount
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "edk2-pytool-library";
|
|
version = "0.21.3";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianocore";
|
|
repo = "edk2-pytool-library";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-tyDRHw3c5Kn9IXm5K7Qpn1xfmu5c3pb9D1mpeqo6SHg=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyasn1
|
|
pyasn1-modules
|
|
cryptography
|
|
joblib
|
|
gitpython
|
|
sqlalchemy
|
|
pygount
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires network access
|
|
"test_basic_parse"
|
|
];
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|