1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
62 lines
1.2 KiB
Nix
62 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
setuptools-scm,
|
|
pyasn1,
|
|
pyasn1-modules,
|
|
cryptography,
|
|
joblib,
|
|
gitpython,
|
|
sqlalchemy,
|
|
pygount,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "edk2-pytool-library";
|
|
version = "0.23.11";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tianocore";
|
|
repo = "edk2-pytool-library";
|
|
tag = "v${version}";
|
|
hash = "sha256-bKyNB2vWhOV6X0BUtoLVaYxAl91UpiRSRPcRywuhkQY=";
|
|
};
|
|
|
|
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 = {
|
|
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/${src.tag}";
|
|
license = lib.licenses.bsd2Patent;
|
|
maintainers = with lib.maintainers; [ nickcao ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|