2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
70 lines
1.3 KiB
Nix
70 lines
1.3 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, pythonOlder
|
|
, fetchFromGitHub
|
|
, setuptools
|
|
, setuptools-scm
|
|
, pythonRelaxDepsHook
|
|
, pyasn1
|
|
, pyasn1-modules
|
|
, cryptography
|
|
, joblib
|
|
, gitpython
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "edk2-pytool-library";
|
|
version = "0.19.4";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianocore";
|
|
repo = "edk2-pytool-library";
|
|
rev = "v${version}";
|
|
hash = "sha256-7pTi3pDD7245hbWqINchZNImv53a4afzaydE7vTtbVw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
setuptools-scm
|
|
pythonRelaxDepsHook
|
|
];
|
|
|
|
pythonRelaxDeps = [
|
|
"tinydb"
|
|
"joblib"
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
pyasn1
|
|
pyasn1-modules
|
|
cryptography
|
|
joblib
|
|
gitpython
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTests = [
|
|
# requires network access
|
|
"test_basic_parse"
|
|
];
|
|
|
|
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 ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|