3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #232383 from NickCao/edk2-pytool-library

python3Packages.edk2-pytool-library: init at 0.14.1
This commit is contained in:
Nick Cao 2023-05-17 20:02:44 -06:00 committed by GitHub
commit 5c92b3ab83
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, setuptools-scm
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "edk2-pytool-library";
version = "0.14.1";
format = "pyproject";
src = fetchFromGitHub {
owner = "tianocore";
repo = "edk2-pytool-library";
rev = "v${version}";
hash = "sha256-l3ZM2xxZrFz7n/uLSd994l+mGJDi4Qw4C2Lg2uyttL8=";
};
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";
license = licenses.bsd2Patent;
maintainers = with maintainers; [ nickcao ];
};
}

View file

@ -3115,6 +3115,8 @@ self: super: with self; {
editorconfig = callPackage ../development/python-modules/editorconfig { };
edk2-pytool-library = callPackage ../development/python-modules/edk2-pytool-library { };
edlib = callPackage ../development/python-modules/edlib {
inherit (pkgs) edlib;
};