depot/third_party/nixpkgs/pkgs/development/python-modules/pem/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

46 lines
795 B
Nix

{ 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 ];
};
}