depot/third_party/nixpkgs/pkgs/development/python-modules/edk2-pytool-library/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

41 lines
937 B
Nix

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