From 7942341ac0b3b85003728d345cac0557219f79d1 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Sat, 21 Dec 2019 14:46:23 -0800 Subject: [PATCH] pythonPackages.libcloud: fix build --- pkgs/development/python-modules/libcloud/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/libcloud/default.nix b/pkgs/development/python-modules/libcloud/default.nix index 0fd025e32d29..3d505166e4ac 100644 --- a/pkgs/development/python-modules/libcloud/default.nix +++ b/pkgs/development/python-modules/libcloud/default.nix @@ -1,12 +1,14 @@ -{ stdenv +{ lib , buildPythonPackage , fetchPypi +, isPy27 , mock , pycrypto , requests , pytestrunner , pytest , requests-mock +, typing }: buildPythonPackage rec { @@ -19,14 +21,14 @@ buildPythonPackage rec { }; checkInputs = [ mock pytest pytestrunner requests-mock ]; - propagatedBuildInputs = [ pycrypto requests ]; + propagatedBuildInputs = [ pycrypto requests ] ++ lib.optionals isPy27 [ typing ]; preConfigure = "cp libcloud/test/secrets.py-dist libcloud/test/secrets.py"; # requires a certificates file doCheck = false; - meta = with stdenv.lib; { + meta = with lib; { description = "A unified interface to many cloud providers"; homepage = http://incubator.apache.org/libcloud/; license = licenses.asl20;