properly package pyopenssl
This commit is contained in:
parent
5b156eb20a
commit
8236ca5d70
@ -1,5 +1,5 @@
|
||||
{ stdenv, fetchurl, python, intltool, pkgconfig, libX11, gtk
|
||||
, ldns, pyopenssl, pythonDBus, pythonPackages
|
||||
, ldns, pythonDBus, pythonPackages
|
||||
|
||||
, enableJingle ? true, farstream ? null, gst_plugins_bad ? null
|
||||
, libnice ? null
|
||||
@ -64,7 +64,7 @@ stdenv.mkDerivation rec {
|
||||
pythonPackages.sqlite3 pythonPackages.pyasn1
|
||||
pythonPackages.pyxdg
|
||||
pythonPackages.nbxmpp
|
||||
pyopenssl pythonDBus
|
||||
pythonPackages.pyopenssl pythonDBus
|
||||
] ++ optionals enableJingle [ farstream gst_plugins_bad libnice ]
|
||||
++ optional enableE2E pythonPackages.pycrypto
|
||||
++ optional enableRST pythonPackages.docutils
|
||||
|
@ -1,26 +0,0 @@
|
||||
a :
|
||||
let
|
||||
fetchurl = a.fetchurl;
|
||||
|
||||
version = a.lib.attrByPath ["version"] "0.13.1" a;
|
||||
propagatedBuildInputs = with a; [
|
||||
openssl python
|
||||
];
|
||||
in
|
||||
rec {
|
||||
src = fetchurl {
|
||||
url = "http://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-${version}.tar.gz";
|
||||
sha256 = "1nrg2kas0wsv65j8sia8zkkc6ir5i20lrhkfavjxzxhl0iqyq1ms";
|
||||
};
|
||||
|
||||
inherit propagatedBuildInputs;
|
||||
configureFlags = [];
|
||||
|
||||
/* doConfigure should be removed if not needed */
|
||||
phaseNames = ["installPythonPackage"];
|
||||
|
||||
name = "pyOpenSSL-" + version;
|
||||
meta = {
|
||||
description = "Python OpenSSL wrapper capable of checking certificates";
|
||||
};
|
||||
}
|
@ -13,5 +13,6 @@ stdenv.mkDerivation rec {
|
||||
meta = {
|
||||
homepage = http://linuxbrit.co.uk/scrot/;
|
||||
description = "A command-line screen capture utility";
|
||||
platforms = stdenv.lib.platforms.linux;
|
||||
};
|
||||
}
|
||||
|
@ -7357,9 +7357,7 @@ let
|
||||
|
||||
pylint = callPackage ../development/python-modules/pylint { };
|
||||
|
||||
pyopenssl = builderDefsPackage (import ../development/python-modules/pyopenssl) {
|
||||
inherit python openssl;
|
||||
};
|
||||
pyopenssl = pythonPackages.pyopenssl;
|
||||
|
||||
rhpl = callPackage ../development/python-modules/rhpl { };
|
||||
|
||||
|
@ -1663,6 +1663,43 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
cryptography = buildPythonPackage rec {
|
||||
name = "cryptography-0.6.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/c/cryptography/${name}.tar.gz";
|
||||
sha256 = "17ij2acy28ryxahiq64lpf71d5z3sa9xhr4pjv7a1v81189i0j82";
|
||||
};
|
||||
|
||||
buildInputs = [ pkgs.openssl self.pretend self.cryptography_vectors
|
||||
self.iso8601 self.pyasn1 self.pytest ];
|
||||
propagatedBuildInputs = [ self.six self.cffi ];
|
||||
};
|
||||
|
||||
cryptography_vectors = buildPythonPackage rec {
|
||||
name = "cryptography_vectors-0.6.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/c/cryptography-vectors/${name}.tar.gz";
|
||||
sha256 = "1ks1xdb1ff74qmjdzqcfvkrwsbnwpsjgg3cy18zh37p8985cvl3r";
|
||||
};
|
||||
};
|
||||
|
||||
pretend = buildPythonPackage rec {
|
||||
name = "pretend-1.0.8";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pretend/pretend-1.0.8.tar.gz";
|
||||
sha256 = "0r5r7ygz9m6d2bklflbl84cqhjkc2q12xgis8268ygjh30g2q3wk";
|
||||
};
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/alex/pretend;
|
||||
license = licenses.bsd;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
detox = self.buildPythonPackage rec {
|
||||
name = "detox-0.9.3";
|
||||
|
||||
@ -1712,11 +1749,11 @@ let
|
||||
};
|
||||
|
||||
cffi = buildPythonPackage rec {
|
||||
name = "cffi-0.7.2";
|
||||
name = "cffi-0.8.6";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "http://pypi.python.org/packages/source/c/cffi/${name}.tar.gz";
|
||||
md5 = "d329f5cb2053fd31dafc02e2c9ef0299";
|
||||
sha256 = "0406j3sgndmx88idv5zxkkrwfqxmjl18pj8gf47nsg4ymzixjci5";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ pkgs.libffi pycparser ];
|
||||
@ -2419,19 +2456,21 @@ let
|
||||
};
|
||||
|
||||
gcutil = buildPythonPackage rec {
|
||||
name = "gcutil-1.15.0";
|
||||
name = "gcutil-1.16.1";
|
||||
meta.maintainers = [ stdenv.lib.maintainers.phreedom ];
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = https://dl.google.com/dl/cloudsdk/release/artifacts/gcutil-1.15.0.tar.gz;
|
||||
sha256 = "12c98ivhjr01iz6lkga574xm8p0bsil6arydvpblyw8sjkgim5sq";
|
||||
url = https://dl.google.com/dl/cloudsdk/release/artifacts/gcutil-1.16.1.tar.gz;
|
||||
sha256 = "00jaf7x1ji9y46fbkww2sg6r6almrqfsprydz3q2swr4jrnrsx9x";
|
||||
};
|
||||
|
||||
patchPhase = ''
|
||||
substituteInPlace setup.py --replace "httplib2==0.8" "httplib2"
|
||||
substituteInPlace setup.py \
|
||||
--replace "httplib2==0.8" "httplib2" \
|
||||
--replace "iso8601==0.1.4" "iso8601"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = with self; [ gflags iso8601_0_1_4 ipaddr httplib2 google_apputils google_api_python_client ];
|
||||
propagatedBuildInputs = with self; [ gflags iso8601 ipaddr httplib2 google_apputils google_api_python_client ];
|
||||
};
|
||||
|
||||
gnutls = buildPythonPackage rec {
|
||||
@ -3296,7 +3335,7 @@ let
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [
|
||||
pyGtkGlade pkgs.libtorrentRasterbar twisted Mako chardet pyxdg pkgs.pyopenssl modules.curses
|
||||
pyGtkGlade pkgs.libtorrentRasterbar twisted Mako chardet pyxdg self.pyopenssl modules.curses
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
@ -3908,7 +3947,7 @@ let
|
||||
sha256 = "16cddyk5is0gjfn0ia5n2l4lhdzvbjzlx6sfpy7ddjd3d3fq7ckl";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ twisted pkgs.pyopenssl ];
|
||||
propagatedBuildInputs = with self; [ twisted self.pyopenssl ];
|
||||
|
||||
meta = {
|
||||
homepage = http://foolscap.lothar.com/;
|
||||
@ -4585,11 +4624,11 @@ let
|
||||
propagatedBuildInputs = with self; [ self.nose self.ipythonLight ];
|
||||
};
|
||||
|
||||
iso8601_0_1_4 = buildPythonPackage {
|
||||
name = "iso8601-0.1.4";
|
||||
iso8601 = buildPythonPackage {
|
||||
name = "iso8601-0.1.10";
|
||||
src = pkgs.fetchurl {
|
||||
url = https://pypi.python.org/packages/source/i/iso8601/iso8601-0.1.4.tar.gz;
|
||||
sha256 = "03gnjxpfq0wwimqnsvz32xcngq0hrdqryn3zm8qh95hnnggwqa3s";
|
||||
url = https://pypi.python.org/packages/source/i/iso8601/iso8601-0.1.10.tar.gz;
|
||||
sha256 = "1qf01afxh7j4gja71vxv345if8avg6nnm0ry0zsk6j3030xgy4p7";
|
||||
};
|
||||
|
||||
meta = {
|
||||
@ -5177,7 +5216,7 @@ let
|
||||
};
|
||||
|
||||
buildInputs = with self; [
|
||||
pkgs.pyopenssl pyasn1 urwid pil lxml flask protobuf netlib
|
||||
pyopenssl pyasn1 urwid pil lxml flask protobuf netlib
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
@ -5581,7 +5620,7 @@ let
|
||||
};
|
||||
|
||||
buildInputs = with self; [
|
||||
pkgs.pyopenssl pyasn1
|
||||
pyopenssl pyasn1
|
||||
];
|
||||
|
||||
doCheck = false;
|
||||
@ -7475,6 +7514,21 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
pyopenssl = buildPythonPackage rec {
|
||||
name = "pyopenssl-${version}";
|
||||
version = "0.14";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pyOpenSSL/pyOpenSSL-0.14.tar.gz";
|
||||
sha256 = "0vpfqhng4cky7chliknkxv910iabqbfcxvkjiankh08jkkjvi7d9";
|
||||
};
|
||||
|
||||
# 17 tests failing
|
||||
doCheck = false;
|
||||
|
||||
propagatedBuildInputs = [ self.cryptography ];
|
||||
};
|
||||
|
||||
|
||||
pyquery = buildPythonPackage rec {
|
||||
name = "pyquery-1.2.4";
|
||||
|
Loading…
x
Reference in New Issue
Block a user