mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 02:13:23 +00:00
pythonPackages.m2crypto: refactor move to python-modules
This commit is contained in:
parent
a8d1e5c4a5
commit
03a19a19d9
31
pkgs/development/python-modules/m2crypto/default.nix
Normal file
31
pkgs/development/python-modules/m2crypto/default.nix
Normal 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;
|
||||
};
|
||||
|
||||
}
|
@ -5773,28 +5773,7 @@ in {
|
||||
|
||||
magic = callPackage ../development/python-modules/magic { };
|
||||
|
||||
m2crypto = buildPythonPackage rec {
|
||||
version = "0.24.0";
|
||||
name = "m2crypto-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/M/M2Crypto/M2Crypto-${version}.tar.gz";
|
||||
sha256 = "1s2y0pf2zg7xf4nfwrw7zhwbk615r5a7bgi5wwkwzh6jl50n99c0";
|
||||
};
|
||||
|
||||
buildInputs = with self; [ 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 = {
|
||||
description = "A Python crypto and SSL toolkit";
|
||||
homepage = http://chandlerproject.org/Projects/MeTooCrypto;
|
||||
};
|
||||
};
|
||||
m2crypto = callPackage ../development/python-modules/m2crypto { };
|
||||
|
||||
Mako = callPackage ../development/python-modules/Mako { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user