mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-04-13 12:27:34 +00:00
python311Packages.pyhanko: 0.17.0 -> 0.20.0
This commit is contained in:
parent
3bc0a72342
commit
614f26de22
@ -1,49 +1,58 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pythonOlder
|
||||
, aiohttp
|
||||
, asn1crypto
|
||||
, buildPythonPackage
|
||||
, certomancer
|
||||
, click
|
||||
, cryptography
|
||||
, defusedxml
|
||||
, fetchFromGitHub
|
||||
, fonttools
|
||||
, freezegun
|
||||
, oscrypto
|
||||
, pillow
|
||||
, pyhanko-certvalidator
|
||||
, pytest-aiohttp
|
||||
, pytestCheckHook
|
||||
, python-barcode
|
||||
, python-pae
|
||||
, python-pkcs11
|
||||
, pythonOlder
|
||||
, pytz
|
||||
, pyyaml
|
||||
, qrcode
|
||||
, requests
|
||||
, tzlocal
|
||||
, certomancer
|
||||
, freezegun
|
||||
, python-pae
|
||||
, pytest-aiohttp
|
||||
, requests-mock
|
||||
, pytestCheckHook
|
||||
|
||||
# optionals
|
||||
, defusedxml
|
||||
, oscrypto
|
||||
, fonttools
|
||||
, setuptools
|
||||
, tzlocal
|
||||
, uharfbuzz
|
||||
, pillow
|
||||
, python-barcode
|
||||
, python-pkcs11
|
||||
, aiohttp
|
||||
, wheel
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyhanko";
|
||||
version = "0.17.0";
|
||||
format = "setuptools";
|
||||
version = "0.20.0";
|
||||
format = "pyproject";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
# Tests are only available on GitHub
|
||||
src = fetchFromGitHub {
|
||||
owner = "MatthiasValvekens";
|
||||
repo = "pyHanko";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-tvb2zdmIN6MkezmLNkyCcP8EfqxrbPg/FEqgW16Ka6Q=";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-mWhkTVhq3bDkOlhUZIBBqwXUuQCXcFHW1haGOGMywzg=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace ' "pytest-runner",' ""
|
||||
'';
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
wheel
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
asn1crypto
|
||||
click
|
||||
@ -57,7 +66,7 @@ buildPythonPackage rec {
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
extra_pubkey_algs = [
|
||||
extra-pubkey-algs = [
|
||||
oscrypto
|
||||
];
|
||||
xmp = [
|
||||
@ -74,16 +83,11 @@ buildPythonPackage rec {
|
||||
pkcs11 = [
|
||||
python-pkcs11
|
||||
];
|
||||
async_http = [
|
||||
async-http = [
|
||||
aiohttp
|
||||
];
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace ", 'pytest-runner'" "" \
|
||||
'';
|
||||
|
||||
nativeCheckInputs = [
|
||||
aiohttp
|
||||
certomancer
|
||||
@ -132,6 +136,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Sign and stamp PDF files";
|
||||
homepage = "https://github.com/MatthiasValvekens/pyHanko";
|
||||
changelog = "https://github.com/MatthiasValvekens/pyHanko/blob/v${version}/docs/changelog.rst";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ wolfangaukang ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user