Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ lib, buildPythonPackage, cacert, fetchFromGitHub, setuptools, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "certifi"; version = "2026.07.22"; pyproject = true;
src = fetchFromGitHub { owner = "certifi"; repo = "python-certifi"; tag = finalAttrs.version; hash = "sha256-euVWKJiFsx7F8YRMgRrrHswBmDBmrV/guiuvqtSUnSs="; };
patches = [ # Add support for NIX_SSL_CERT_FILE ./env.patch ];
postPatch = '' # Use our system-wide ca-bundle instead of the bundled one rm -v "certifi/cacert.pem" ln -snvf "${cacert}/etc/ssl/certs/ca-bundle.crt" "certifi/cacert.pem" '';
nativeBuildInputs = [ setuptools ];
propagatedNativeBuildInputs = [ # propagate cacerts setup-hook to set up `NIX_SSL_CERT_FILE` cacert ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "certifi" ];
meta = { homepage = "https://github.com/certifi/python-certifi"; description = "Python package for providing Mozilla's CA Bundle"; license = lib.licenses.isc; maintainers = with lib.maintainers; [ koral ]; };})