diff options
author | adisbladis <adis@blad.is> | 2018-03-16 01:14:12 +0800 |
---|---|---|
committer | adisbladis <adis@blad.is> | 2018-03-16 01:14:12 +0800 |
commit | 408f6b2843b44109d09f3ad2787fc49c75d99776 (patch) | |
tree | 93d2fa203e9c9fea0f7b1ee168e66c397ac0dd6c /pkgs/development/python-modules/pycurl | |
parent | a2a7037937df20a92449d5c3a30b333fc68ef21a (diff) | |
download | nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar.gz nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar.bz2 nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar.lz nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar.xz nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.tar.zst nixpkgs-408f6b2843b44109d09f3ad2787fc49c75d99776.zip |
pythonPackages.pycurl: Move to separate file
Diffstat (limited to 'pkgs/development/python-modules/pycurl')
-rw-r--r-- | pkgs/development/python-modules/pycurl/default.nix | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pycurl/default.nix b/pkgs/development/python-modules/pycurl/default.nix new file mode 100644 index 00000000000..e1d9158a4f7 --- /dev/null +++ b/pkgs/development/python-modules/pycurl/default.nix @@ -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"; + }; +} |