3
0
Fork 0
forked from mirrors/nixpkgs

python3Packages.pycurl: pull fix for curl 7.83.0

Without the change `python3Packages.pycurl` tests fail on `staging`:

    $ nix build -f. -L python3Packages.pycurl
    ...
    python3.9-pycurl> tests/error_test.py F..F                                                 [ 12%]
    ...
    python3.9-pycurl> >           self.assertEqual('No URL set!', msg)
    python3.9-pycurl> E           AssertionError: 'No URL set!' != 'No URL set'
    python3.9-pycurl> E           - No URL set!
    python3.9-pycurl> E           ?           -
    python3.9-pycurl> E           + No URL set
    python3.9-pycurl> tests/error_test.py:32: AssertionError
This commit is contained in:
Sergei Trofimovich 2022-05-01 08:19:53 +01:00
parent 676b5fba35
commit 79d9ef8a93

View file

@ -2,6 +2,7 @@
, buildPythonPackage
, isPyPy
, fetchPypi
, fetchpatch
, pythonOlder
, curl
, openssl
@ -20,6 +21,16 @@ buildPythonPackage rec {
sha256 = "sha256-qGOtGP9Hj1VFkkBXiHza5CLhsnRuQWdGFfaHSY6luIo=";
};
patches = [
# Pull upstream patch for curl-3.83:
# https://github.com/pycurl/pycurl/pull/753
(fetchpatch {
name = "curl-3.83.patch";
url = "https://github.com/pycurl/pycurl/commit/d47c68b1364f8a1a45ab8c584c291d44b762f7b1.patch";
sha256 = "sha256-/lGq7O7ZyytzBAxWJPigcWdvypM7OHLBcp9ItmX7z1g=";
})
];
preConfigure = ''
substituteInPlace setup.py --replace '--static-libs' '--libs'
export PYCURL_SSL_LIBRARY=openssl