mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
30 lines
706 B
Nix
30 lines
706 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "asn1crypto";
|
|
version = "1.5.1";
|
|
format = "setuptools";
|
|
|
|
# Pulling from Github to run tests
|
|
src = fetchFromGitHub {
|
|
owner = "wbond";
|
|
repo = "asn1crypto";
|
|
rev = version;
|
|
sha256 = "sha256-M8vASxhaJPgkiTrAckxz7gk/QHkrFlNz7fFbnLEBT+M=";
|
|
};
|
|
|
|
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";
|
|
};
|
|
}
|