Commit 15671b3f authored by Sigmanificient's avatar Sigmanificient
Browse files

python314Packages.cert-chain-resolver: modernize

parent e7334b57
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -4,24 +4,27 @@
  cacert,
  cryptography,
  fetchFromGitHub,
  setuptools,
  pytestCheckHook,
  pytest-mock,
  six,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "cert-chain-resolver";
  version = "1.4.1";
  format = "setuptools";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "rkoopmans";
    repo = "python-certificate-chain-resolver";
    tag = version;
    tag = finalAttrs.version;
    hash = "sha256-DWE+mR7EO5ohuRAR0WC40GBY7HpwXIpU0hhVUnWNRno=";
  };

  propagatedBuildInputs = [ cryptography ];
  build-system = [ setuptools ];

  dependencies = [ cryptography ];

  nativeCheckInputs = [
    pytestCheckHook
@@ -44,8 +47,8 @@ buildPythonPackage rec {
    description = "Resolve / obtain the certificate intermediates of a x509 certificate";
    mainProgram = "cert-chain-resolver";
    homepage = "https://github.com/rkoopmans/python-certificate-chain-resolver";
    changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${src.tag}/CHANGELOG.md";
    changelog = "https://github.com/rkoopmans/python-certificate-chain-resolver/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ veehaitch ];
  };
}
})