python3Packages.pem: Init at 21.2.0

This commit is contained in:
nyanotech 2023-06-16 01:12:12 -07:00
parent 1ad5661ab3
commit b88ce3f367
No known key found for this signature in database
GPG Key ID: D2D0A9E8F160472B
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, pytestCheckHook
, certifi
, cryptography
, pretend
, pyopenssl
, twisted
}:
buildPythonPackage rec {
pname = "pem";
version = "21.2.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "hynek";
repo = pname;
rev = version;
hash = "sha256-mftLdgtgb5J4zwsb1F/4v4K7XTy4VSZBMy3zPV2f1uA=";
};
nativeCheckInputs = [
certifi
cryptography
pretend
pyopenssl
pytestCheckHook
twisted
twisted.optional-dependencies.tls
];
pythonImportsCheck = [
"pem"
];
meta = with lib; {
homepage = "https://pem.readthedocs.io/";
description = "Easy PEM file parsing in Python.";
license = licenses.mit;
maintainers = with maintainers; [ nyanotech ];
};
}

View File

@ -7476,6 +7476,8 @@ self: super: with self; {
inherit (pkgs) glibcLocales git;
};
pem = callPackage ../development/python-modules/pem { };
pendulum = callPackage ../development/python-modules/pendulum { };
pep440 = callPackage ../development/python-modules/pep440 { };