depot/third_party/nixpkgs/pkgs/development/python-modules/edk2-pytool-library/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

50 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, pyasn1
, pyasn1-modules
, cryptography
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "edk2-pytool-library";
version = "0.15.3";
format = "pyproject";
src = fetchFromGitHub {
owner = "tianocore";
repo = "edk2-pytool-library";
rev = "v${version}";
hash = "sha256-PWjevYUts0dQMBmABpU8neuTqDlglTCCQmuvnVndfto=";
};
nativeBuildInputs = [
setuptools
setuptools-scm
];
propagatedBuildInputs = [
pyasn1
pyasn1-modules
cryptography
];
nativeCheckInputs = [
pytestCheckHook
];
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 ];
};
}