1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyopenssl 5, tldextract 6, pytestCheckHook 7, pytest-cov 8}: 9 10buildPythonPackage rec { 11 pname = "certauth"; 12 version = "1.3.0"; 13 14 src = fetchFromGitHub { 15 owner = "ikreymer"; 16 repo = "certauth"; 17 rev = "ad2bae5d40a9e45519fc1f2cd7678174bbc55b3d"; # Repo has no git tags 18 sha256 = "sha256-Rso5N0jb9k7bdorjPIUMNiZZPnzwbkxFNiTpsJ9pco0="; 19 }; 20 21 propagatedBuildInputs = [ 22 pyopenssl 23 tldextract 24 ]; 25 26 checkInputs = [ 27 pytestCheckHook 28 pytest-cov 29 ]; 30 31 pythonImportsCheck = [ "certauth" ]; 32 33 meta = with lib; { 34 description = "Simple CertificateAuthority and host certificate creation, useful for man-in-the-middle HTTPS proxy"; 35 homepage = "https://github.com/ikreymer/certauth"; 36 license = licenses.mit; 37 maintainers = with maintainers; [ Luflosi ]; 38 }; 39}