depot/third_party/nixpkgs/pkgs/development/python-modules/asn1crypto/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

39 lines
886 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
# build-system
, setuptools
# tests
, pytestCheckHook
}:
buildPythonPackage {
pname = "asn1crypto";
version = "1.5.1-unstable-2023-11-03";
pyproject = true;
# Pulling from Github to run tests
src = fetchFromGitHub {
owner = "wbond";
repo = "asn1crypto";
# https://github.com/wbond/asn1crypto/issues/269
rev = "b763a757bb2bef2ab63620611ddd8006d5e9e4a2";
hash = "sha256-11WajEDtisiJsKQjZMSd5sDog3DuuBzf1PcgSY+uuXY=";
};
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [
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";
license = lib.licenses.mit;
homepage = "https://github.com/wbond/asn1crypto";
};
}