summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederik Rietdijk <fridh@fridh.nl>2018-01-24 14:00:25 +0100
committerFrederik Rietdijk <fridh@fridh.nl>2018-01-24 14:18:19 +0100
commite9794d5a381cd9fb9daaf305d4790f6c2d766287 (patch)
treef6e8c750312384f5c3803e4231034445b3f3ef85
parenta6bb22853afad5b7168332a2f2b54989044a2d74 (diff)
downloadnixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar.gz
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar.bz2
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar.lz
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar.xz
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.tar.zst
nixlib-e9794d5a381cd9fb9daaf305d4790f6c2d766287.zip
python.pkgs.backports_ssl_match_hostname: set to null conditionally
-rw-r--r--pkgs/top-level/python-packages.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index e45418fba46d..a22851ec65a2 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -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";