Merge pull request #168024 from WolfangAukang/asn1crypto-1.5.1

python310Packages.asn1crypto: 1.4.0 -> 1.5.1
This commit is contained in:
Thiago Kenji Okada 2022-04-15 21:08:41 +01:00 committed by GitHub
commit 1135d82846
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 18 additions and 7 deletions

View file

@ -1,19 +1,25 @@
{ lib
, buildPythonPackage
, fetchPypi
, fetchFromGitHub
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "asn1crypto";
version = "1.4.0";
version = "1.5.1";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "f4f6e119474e58e04a2b1af817eb585b4fd72bdd89b998624712b5c99be7641c";
# Pulling from Github to run tests
src = fetchFromGitHub {
owner = "wbond";
repo = "asn1crypto";
rev = version;
sha256 = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M=";
};
# No tests included
doCheck = false;
checkInputs = [
pytestCheckHook
];
meta = {
description = "Fast ASN.1 parser and serializer with definitions for private keys, public keys, certificates, CRL, OCSP, CMS, PKCS#3, PKCS#7, PKCS#8, PKCS#12, PKCS#5, X.509 and TSP";

View file

@ -9,6 +9,11 @@ buildPythonPackage rec {
sha256 = "0wvdv0frl7xib05sixjv9m6jywaa2wdhdhsqqdfk45akk2r80pcn";
};
postPatch = ''
substituteInPlace src/testing/common/database.py \
--replace "collections.Callable" "collections.abc.Callable"
'';
# There are no unit tests
doCheck = false;