depot/third_party/nixpkgs/pkgs/development/python-modules/edk2-pytool-library/default.nix

69 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools
, setuptools-scm
, pythonRelaxDepsHook
, pyasn1
, pyasn1-modules
, cryptography
, joblib
, gitpython
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "edk2-pytool-library";
version = "0.19.9";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "tianocore";
repo = "edk2-pytool-library";
rev = "refs/tags/v${version}";
hash = "sha256-eQcto4pd+y9fCjuiaSezA3okfW+xrR01Kc/N2tQdf5A=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"tinydb"
"joblib"
];
propagatedBuildInputs = [
pyasn1
pyasn1-modules
cryptography
joblib
gitpython
];
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;
};
}