pythonPackages.geventhttpclient: only propagate backports_ssl_match_hostname below python 3.7

This commit is contained in:
Sandro Jäckel 2021-03-12 02:43:36 +01:00
parent 211b423dae
commit f46c950e06
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -6,6 +6,7 @@
, certifi
, six
, backports_ssl_match_hostname
, pythonOlder
}:
buildPythonPackage rec {
@ -18,7 +19,8 @@ buildPythonPackage rec {
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ gevent certifi six backports_ssl_match_hostname ];
propagatedBuildInputs = [ gevent certifi six ]
++ lib.optionals (pythonOlder "3.7") [ backports_ssl_match_hostname ];
# Several tests fail that require network
doCheck = false;