depot/third_party/nixpkgs/pkgs/development/python-modules/edk2-pytool-library/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

64 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.11";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "tianocore";
repo = "edk2-pytool-library";
rev = "refs/tags/v${version}";
hash = "sha256-5d/IEa7IGbQ2FIAl6Y8tBJIzCNDPibmhy35CSpcWQ8A=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
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;
};
}