pythonPackages.m2crypto: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov
2018-10-15 17:16:23 -04:00
committed by Frederik Rietdijk
parent a8d1e5c4a5
commit 03a19a19d9
2 changed files with 32 additions and 22 deletions

View File

@@ -0,0 +1,31 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, pkgs
}:
buildPythonPackage rec {
version = "0.24.0";
pname = "M2Crypto";
src = fetchPypi {
inherit pname version;
sha256 = "1s2y0pf2zg7xf4nfwrw7zhwbk615r5a7bgi5wwkwzh6jl50n99c0";
};
buildInputs = [ pkgs.swig2 pkgs.openssl ];
preConfigure = ''
substituteInPlace setup.py --replace "self.openssl = '/usr'" "self.openssl = '${pkgs.openssl.dev}'"
'';
doCheck = false; # another test that depends on the network.
meta = with stdenv.lib; {
description = "A Python crypto and SSL toolkit";
homepage = http://chandlerproject.org/Projects/MeTooCrypto;
license = licenses.mit;
};
}