From 10f05262180062103df2c130b4898e9fe731e7b7 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 6 Nov 2023 17:09:50 +0000 Subject: [PATCH 1/2] python310Packages.m2crypto: 0.39.0 -> 0.40.1 --- pkgs/development/python-modules/m2crypto/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/m2crypto/default.nix b/pkgs/development/python-modules/m2crypto/default.nix index f8ec95604542..99b62b6684a3 100644 --- a/pkgs/development/python-modules/m2crypto/default.nix +++ b/pkgs/development/python-modules/m2crypto/default.nix @@ -10,7 +10,7 @@ buildPythonPackage rec { pname = "m2crypto"; - version = "0.39.0"; + version = "0.40.1"; format = "setuptools"; disabled = pythonOlder "3.7"; @@ -18,7 +18,7 @@ buildPythonPackage rec { src = fetchPypi { pname = "M2Crypto"; inherit version; - hash = "sha256-JMD0cTWLixmtTIqp2hLoaAMLZcH9syedAG32DJUBM4o="; + hash = "sha256-u/0RPsVXCMBYFiUqTwnkI33087v8gXHLvDMFfSV7uzA="; }; nativeBuildInputs = [ From e1e4d22a1b1c0b5f406e0df102f582f54645010f Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Fri, 8 Dec 2023 18:21:55 +0100 Subject: [PATCH 2/2] python310Packages.m2crypto: fix build on darwin --- pkgs/development/python-modules/m2crypto/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/python-modules/m2crypto/default.nix b/pkgs/development/python-modules/m2crypto/default.nix index 99b62b6684a3..7353831bad39 100644 --- a/pkgs/development/python-modules/m2crypto/default.nix +++ b/pkgs/development/python-modules/m2crypto/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchPypi , openssl @@ -31,6 +32,11 @@ buildPythonPackage rec { parameterized ]; + env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin (toString [ + "-Wno-error=implicit-function-declaration" + "-Wno-error=incompatible-pointer-types" + ]); + nativeCheckInputs = [ pytestCheckHook ];