pythonPackages.pycurl: Move to separate file
This commit is contained in:
parent
a2a7037937
commit
408f6b2843
|
@ -0,0 +1,39 @@
|
||||||
|
{ buildPythonPackage
|
||||||
|
, isPyPy
|
||||||
|
, fetchPypi
|
||||||
|
, curl
|
||||||
|
, openssl
|
||||||
|
, bottle
|
||||||
|
, pytest
|
||||||
|
, nose
|
||||||
|
, flaky
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "pycurl";
|
||||||
|
version = "7.43.0.1";
|
||||||
|
disabled = isPyPy; # https://github.com/pycurl/pycurl/issues/208
|
||||||
|
|
||||||
|
src = fetchPypi {
|
||||||
|
inherit pname version;
|
||||||
|
sha256 = "1ali1gjs9iliwjra7w0y5hwg79a2fd0f4ydvv6k27sgxpbr1n8s3";
|
||||||
|
};
|
||||||
|
|
||||||
|
buildInputs = [ curl openssl.out ];
|
||||||
|
|
||||||
|
checkInputs = [ bottle pytest nose flaky ];
|
||||||
|
|
||||||
|
checkPhase = ''
|
||||||
|
py.test -k "not test_ssl_in_static_libs and not ssh_key_cb_test" tests
|
||||||
|
'';
|
||||||
|
|
||||||
|
preConfigure = ''
|
||||||
|
substituteInPlace setup.py --replace '--static-libs' '--libs'
|
||||||
|
export PYCURL_SSL_LIBRARY=openssl
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = {
|
||||||
|
homepage = http://pycurl.sourceforge.net/;
|
||||||
|
description = "Python wrapper for libcurl";
|
||||||
|
};
|
||||||
|
}
|
|
@ -12943,34 +12943,7 @@ in {
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
pycurl = buildPythonPackage (rec {
|
pycurl = callPackage ../development/python-modules/pycurl { };
|
||||||
pname = "pycurl";
|
|
||||||
version = "7.43.0.1";
|
|
||||||
disabled = isPyPy; # https://github.com/pycurl/pycurl/issues/208
|
|
||||||
|
|
||||||
src = fetchPypi {
|
|
||||||
inherit pname version;
|
|
||||||
sha256 = "1ali1gjs9iliwjra7w0y5hwg79a2fd0f4ydvv6k27sgxpbr1n8s3";
|
|
||||||
};
|
|
||||||
|
|
||||||
buildInputs = with self; [ pkgs.curl pkgs.openssl.out ];
|
|
||||||
|
|
||||||
checkInputs = with self; [ bottle pytest nose flaky ];
|
|
||||||
|
|
||||||
checkPhase = ''
|
|
||||||
py.test -k "not test_ssl_in_static_libs and not ssh_key_cb_test" tests
|
|
||||||
'';
|
|
||||||
|
|
||||||
preConfigure = ''
|
|
||||||
substituteInPlace setup.py --replace '--static-libs' '--libs'
|
|
||||||
export PYCURL_SSL_LIBRARY=openssl
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = {
|
|
||||||
homepage = http://pycurl.sourceforge.net/;
|
|
||||||
description = "Python wrapper for libcurl";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
pycurl2 = buildPythonPackage (rec {
|
pycurl2 = buildPythonPackage (rec {
|
||||||
name = "pycurl2-7.20.0";
|
name = "pycurl2-7.20.0";
|
||||||
|
|
Loading…
Reference in New Issue