1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "asn1crypto";
9 version = "1.5.1";
10 format = "setuptools";
11
12 # Pulling from Github to run tests
13 src = fetchFromGitHub {
14 owner = "wbond";
15 repo = "asn1crypto";
16 rev = version;
17 sha256 = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M=";
18 };
19
20 checkInputs = [
21 pytestCheckHook
22 ];
23
24 meta = {
25 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";
26 license = lib.licenses.mit;
27 homepage = "https://github.com/wbond/asn1crypto";
28 };
29}