Unverified Commit 641de7d9 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.m2crypto : 0.45.1 -> 0.46.2 (python 3.14 support) (#478186)

parents 8e1d4370 7a56d3e4
Loading
Loading
Loading
Loading
+19 −10
Original line number Diff line number Diff line
@@ -2,22 +2,23 @@
  lib,
  stdenv,
  buildPythonPackage,
  fetchPypi,
  fetchurl,
  fetchFromGitLab,
  openssl,
  pytestCheckHook,
  setuptools,
  swig,
}:

buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
  pname = "m2crypto";
  version = "0.45.1";
  version = "0.46.2";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-0PyBqIKO2/QwhDKzBAvwa7JrrZWruefUaQthGFUeduw=";
  src = fetchFromGitLab {
    owner = "m2crypto";
    repo = "m2crypto";
    tag = finalAttrs.version;
    hash = "sha256-XV9aILSWfQ/xKDySflG3wiNRP4YVPVujuhIz2VdPuBc=";
  };

  build-system = [ setuptools ];
@@ -42,13 +43,21 @@ buildPythonPackage rec {
    openssl
  ];

  disabledTests = [
    # Connection refused
    "test_makefile_err"
  ];

  # Tests require localhost access
  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [ "M2Crypto" ];

  meta = {
    description = "Python crypto and SSL toolkit";
    homepage = "https://gitlab.com/m2crypto/m2crypto";
    changelog = "https://gitlab.com/m2crypto/m2crypto/-/blob/${version}/CHANGES";
    changelog = "https://gitlab.com/m2crypto/m2crypto/-/tags/${finalAttrs.version}";
    license = lib.licenses.mit;
    maintainers = [ ];
    maintainers = with lib.maintainers; [ sarahec ];
  };
}
})