diff options
author | Robert Scott <code@humanleg.org.uk> | 2021-09-04 00:56:49 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-04 00:56:49 +0100 |
commit | 87f1bbd3f02e672b5a469bf269f504a619673a56 (patch) | |
tree | 9bc766bc65bf3670f86377a6b70a9710cb64f8ed | |
parent | 3a77817ee97720d1fe6d780d2ed5fad49b0d5435 (diff) | |
parent | 9c1c61ca7a0213cf3408700020ae058636c28065 (diff) | |
download | nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar.gz nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar.bz2 nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar.lz nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar.xz nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.tar.zst nixpkgs-87f1bbd3f02e672b5a469bf269f504a619673a56.zip |
Merge pull request #136344 from Luflosi/add-certauth
python3Packages.certauth: init at 1.3.0
-rw-r--r-- | pkgs/development/python-modules/certauth/default.nix | 39 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 41 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/certauth/default.nix b/pkgs/development/python-modules/certauth/default.nix new file mode 100644 index 00000000000..782ad960814 --- /dev/null +++ b/pkgs/development/python-modules/certauth/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 239c706e0db..419177aa833 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { }; |