python.pkgs.backports_ssl_match_hostname: set to null conditionally

This commit is contained in:
Frederik Rietdijk 2018-01-24 14:00:25 +01:00
parent a6bb22853a
commit e9794d5a38

View file

@ -1011,7 +1011,7 @@ in {
backports_shutil_get_terminal_size = callPackage ../development/python-modules/backports_shutil_get_terminal_size { };
backports_ssl_match_hostname_3_4_0_2 = self.buildPythonPackage rec {
backports_ssl_match_hostname_3_4_0_2 = if !(pythonOlder "3.5") then null else self.buildPythonPackage rec {
name = "backports.ssl_match_hostname-3.4.0.2";
src = pkgs.fetchurl {
@ -1025,7 +1025,7 @@ in {
};
};
backports_ssl_match_hostname = self.buildPythonPackage rec {
backports_ssl_match_hostname = if !(pythonOlder "3.5") then null else self.buildPythonPackage rec {
name = "backports.ssl_match_hostname-${version}";
version = "3.5.0.1";