13 buildPythonPackage rec {
18 disabled = pythonOlder "3.7";
21 inherit pname version;
22 hash = "sha256-bCwce7DoqnaPfKgD2n28JmbUADsmvXrfcCM6/FnYzzM=";
25 build-system = [ setuptools ];
27 nativeBuildInputs = [ swig ];
29 buildInputs = [ openssl ];
33 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin (toString [
34 "-Wno-error=implicit-function-declaration"
35 "-Wno-error=incompatible-pointer-types"
38 // lib.optionalAttrs (stdenv.hostPlatform != stdenv.buildPlatform) {
39 CPP = "${stdenv.cc.targetPrefix}cpp";
47 pythonImportsCheck = [ "M2Crypto" ];
50 description = "Python crypto and SSL toolkit";
51 homepage = "https://gitlab.com/m2crypto/m2crypto";
52 changelog = "https://gitlab.com/m2crypto/m2crypto/-/blob/${version}/CHANGES";
53 license = licenses.mit;