Skip to content

Commit

Permalink
Merge pull request #136344 from Luflosi/add-certauth
Browse files Browse the repository at this point in the history
python3Packages.certauth: init at 1.3.0
  • Loading branch information
risicle authored Sep 3, 2021
2 parents 3a77817 + 9c1c61c commit 87f1bbd
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
39 changes: 39 additions & 0 deletions pkgs/development/python-modules/certauth/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyopenssl
, tldextract
, pytestCheckHook
, pytest-cov
}:

buildPythonPackage rec {
pname = "certauth";
version = "1.3.0";

src = fetchFromGitHub {
owner = "ikreymer";
repo = "certauth";
rev = "ad2bae5d40a9e45519fc1f2cd7678174bbc55b3d"; # Repo has no git tags
sha256 = "sha256-Rso5N0jb9k7bdorjPIUMNiZZPnzwbkxFNiTpsJ9pco0=";
};

propagatedBuildInputs = [
pyopenssl
tldextract
];

checkInputs = [
pytestCheckHook
pytest-cov
];

pythonImportsCheck = [ "certauth" ];

meta = with lib; {
description = "Simple CertificateAuthority and host certificate creation, useful for man-in-the-middle HTTPS proxy";
homepage = "https://github.com/ikreymer/certauth";
license = licenses.mit;
maintainers = with maintainers; [ Luflosi ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1373,6 +1373,8 @@ in {

cert-chain-resolver = callPackage ../development/python-modules/cert-chain-resolver { };

certauth = callPackage ../development/python-modules/certauth { };

certbot = callPackage ../development/python-modules/certbot { };

certbot-dns-cloudflare = callPackage ../development/python-modules/certbot-dns-cloudflare { };
Expand Down

0 comments on commit 87f1bbd

Please sign in to comment.