python312Packages.pyhanko: minor cleaning

This commit is contained in:
Gaetan Lepage 2024-09-16 07:26:03 +02:00
parent 467e802f22
commit 1a26606a23

View File

@ -1,33 +1,40 @@
{
lib,
stdenv,
aiohttp,
asn1crypto,
buildPythonPackage,
certomancer,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
asn1crypto,
click,
cryptography,
defusedxml,
fetchFromGitHub,
fonttools,
freezegun,
oscrypto,
pillow,
pyhanko-certvalidator,
pytest-aiohttp,
pytestCheckHook,
python-barcode,
python-pae,
python-pkcs11,
pythonOlder,
pyyaml,
qrcode,
requests,
requests-mock,
setuptools,
tzlocal,
# optional-dependencies
oscrypto,
defusedxml,
fonttools,
uharfbuzz,
pillow,
python-barcode,
python-pkcs11,
aiohttp,
xsdata,
# tests
certomancer,
freezegun,
pytest-aiohttp,
pytestCheckHook,
python-pae,
requests-mock,
}:
buildPythonPackage rec {
@ -35,8 +42,6 @@ buildPythonPackage rec {
version = "0.25.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "MatthiasValvekens";
repo = "pyHanko";
@ -57,7 +62,7 @@ buildPythonPackage rec {
tzlocal
];
passthru.optional-dependencies = {
optional-dependencies = {
extra-pubkey-algs = [ oscrypto ];
xmp = [ defusedxml ];
opentype = [
@ -77,11 +82,11 @@ buildPythonPackage rec {
aiohttp
certomancer
freezegun
python-pae
pytest-aiohttp
requests-mock
pytestCheckHook
] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
python-pae
requests-mock
] ++ lib.flatten (lib.attrValues optional-dependencies);
disabledTestPaths = [
# ModuleNotFoundError: No module named 'csc_dummy'
@ -116,12 +121,12 @@ buildPythonPackage rec {
pythonImportsCheck = [ "pyhanko" ];
meta = with lib; {
meta = {
description = "Sign and stamp PDF files";
mainProgram = "pyhanko";
homepage = "https://github.com/MatthiasValvekens/pyHanko";
changelog = "https://github.com/MatthiasValvekens/pyHanko/blob/v${version}/docs/changelog.rst";
license = licenses.mit;
license = lib.licenses.mit;
maintainers = [ ];
# Most tests fail with:
# OSError: One or more parameters passed to a function were not valid.