pythonPackages.geventhttpclient: only propagate backports_ssl_match_hostname below python 3.7
This commit is contained in:
parent
211b423dae
commit
f46c950e06
1 changed files with 3 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
, certifi
|
, certifi
|
||||||
, six
|
, six
|
||||||
, backports_ssl_match_hostname
|
, backports_ssl_match_hostname
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -18,7 +19,8 @@ buildPythonPackage rec {
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ pytest ];
|
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
|
# Several tests fail that require network
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
Loading…
Reference in a new issue