mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
32 lines
680 B
Nix
32 lines
680 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pkgs
|
|
}:
|
|
|
|
|
|
buildPythonPackage rec {
|
|
version = "0.30.1";
|
|
pname = "M2Crypto";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "a1b2751cdadc6afac3df8a5799676b7b7c67a6ad144bb62d38563062e7cd3fc6";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|