c7f94ff3ce
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
49 lines
872 B
Nix
49 lines
872 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, openssl
|
|
, parameterized
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, swig2
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "m2crypto";
|
|
version = "0.39.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "M2Crypto";
|
|
inherit version;
|
|
hash = "sha256-JMD0cTWLixmtTIqp2hLoaAMLZcH9syedAG32DJUBM4o=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
swig2
|
|
openssl
|
|
];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
parameterized
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"M2Crypto"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "A Python crypto and SSL toolkit";
|
|
homepage = "https://gitlab.com/m2crypto/m2crypto";
|
|
changelog = "https://gitlab.com/m2crypto/m2crypto/-/blob/${version}/CHANGES";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ andrew-d ];
|
|
};
|
|
}
|