Unverified Commit 7ab45fc8 authored by Gaétan Lepage's avatar Gaétan Lepage Committed by GitHub
Browse files

python3Packages.m2crypto: 0.46.2 -> 0.47.0 (#491175)

parents a9f5ac9d 35096980
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -11,16 +11,25 @@

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

  src = fetchFromGitLab {
    owner = "m2crypto";
    repo = "m2crypto";
    tag = finalAttrs.version;
    hash = "sha256-XV9aILSWfQ/xKDySflG3wiNRP4YVPVujuhIz2VdPuBc=";
    hash = "sha256-yOpejD2lYbv8JrTXxXOwjAgftb9xojAYgC3iKu3bDSQ=";
  };

  # https://lists.sr.ht/~mcepl/m2crypto/%3CCAPhw1+Hg6+OJZoqt1O6aezxnTUFmfFTMzDwkD2bJ74jnmygqrg@mail.gmail.com%3E
  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
    substituteInPlace src/SWIG/_lib.h \
      --replace-fail "|| defined(__clang__)" "&& !defined(__clang__)"
    substituteInPlace src/SWIG/_m2crypto.i \
      --replace-fail "PRAGMA_IGNORE_UNUSED_LABEL" "" \
      --replace-fail "PRAGMA_WARN_STRICT_PROTOTYPES" ""
  '';

  build-system = [ setuptools ];

  nativeBuildInputs = [ swig ];