From f3108c5bd2d2a3059d5c5deb6eb0d8dfeb5b96fa Mon Sep 17 00:00:00 2001 From: Luis Pedro Coelho Date: Fri, 16 Dec 2016 11:22:06 +0100 Subject: [PATCH] pythonPackages.natbib: fix for Python 3.5 (#21114) pathlib is part of the standard library starting in version 3.5. --- pkgs/top-level/python-packages.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 6401f931fd73..a00259366478 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -8254,8 +8254,9 @@ in { pytestflakes pytestpep8 mock - pathlib - ]; + ] + # pathlib was made part of standard library in 3.5: + ++ (optionals (pythonOlder "3.4") [ pathlib ]); meta = { description = "Natural sorting for python";