nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 setuptools-scm,
7 pyasn1,
8 pyasn1-modules,
9 cryptography,
10 joblib,
11 gitpython,
12 sqlalchemy,
13 pygount,
14 pytestCheckHook,
15}:
16
17buildPythonPackage rec {
18 pname = "edk2-pytool-library";
19 version = "0.23.11";
20 pyproject = true;
21
22 src = fetchFromGitHub {
23 owner = "tianocore";
24 repo = "edk2-pytool-library";
25 tag = "v${version}";
26 hash = "sha256-bKyNB2vWhOV6X0BUtoLVaYxAl91UpiRSRPcRywuhkQY=";
27 };
28
29 build-system = [
30 setuptools
31 setuptools-scm
32 ];
33
34 dependencies = [
35 pyasn1
36 pyasn1-modules
37 cryptography
38 joblib
39 gitpython
40 sqlalchemy
41 pygount
42 ];
43
44 nativeCheckInputs = [ pytestCheckHook ];
45
46 disabledTests = [
47 # requires network access
48 "test_basic_parse"
49 ];
50
51 pythonImportsCheck = [ "edk2toollib" ];
52
53 meta = {
54 description = "Python library package that supports UEFI development";
55 homepage = "https://github.com/tianocore/edk2-pytool-library";
56 changelog = "https://github.com/tianocore/edk2-pytool-library/releases/tag/${src.tag}";
57 license = lib.licenses.bsd2Patent;
58 maintainers = with lib.maintainers; [ nickcao ];
59 platforms = lib.platforms.linux;
60 };
61}