Files
nixpkgs/pkgs/development/python-modules/certauth/default.nix
T
Robert Schütz 1a04744f74 treewide: remove superfluous disabled
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:

    pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
    for f in $(find -name '*.nix'); do
        grep -q "$pattern" "$f" || continue
        sed -i "/$pattern/d" "$f"
        if [ $(grep -c pythonOlder "$f") == 1 ]; then
            sed -i '/^\s*pythonOlder,\s*$/d' "$f"
        fi
        nixfmt "$f"
    done
2026-01-11 09:34:20 -08:00

59 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyopenssl,
tldextract,
pytest-cov-stub,
pytestCheckHook,
}:
buildPythonPackage {
pname = "certauth";
version = "1.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ikreymer";
repo = "certauth";
# Repo has no git tags, https://github.com/ikreymer/certauth/issues/15
rev = "ad2bae5d40a9e45519fc1f2cd7678174bbc55b3d";
hash = "sha256-Rso5N0jb9k7bdorjPIUMNiZZPnzwbkxFNiTpsJ9pco0=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
pyopenssl
tldextract
];
nativeCheckInputs = [
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "certauth" ];
disabledTests = [
# https://github.com/ikreymer/certauth/issues/23
"test_ca_cert_in_mem"
"test_custom_not_before_not_after"
# Tests want to download Public Suffix List
"test_file_wildcard"
"test_file_wildcard_subdomains"
"test_in_mem_parent_wildcard_cert"
"test_in_mem_parent_wildcard_cert_at_tld"
"test_in_mem_parent_wildcard_cert_2"
];
meta = {
description = "Simple CertificateAuthority and host certificate creation, useful for man-in-the-middle HTTPS proxy";
mainProgram = "certauth";
homepage = "https://github.com/ikreymer/certauth";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Luflosi ];
};
}