From 19aa09fbda270c6fbb23e4356a0de9fff774881e Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Wed, 20 Nov 2019 17:53:28 -0800 Subject: [PATCH] python3Packages.mock: remove funcsigs dependency --- pkgs/development/python-modules/mock/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/mock/default.nix b/pkgs/development/python-modules/mock/default.nix index 87b6fbeabdc..6978bee000a 100644 --- a/pkgs/development/python-modules/mock/default.nix +++ b/pkgs/development/python-modules/mock/default.nix @@ -1,7 +1,7 @@ -{ stdenv +{ lib , buildPythonPackage , fetchPypi -, unittest2 +, isPy27 , funcsigs , six , pbr @@ -17,8 +17,7 @@ buildPythonPackage rec { sha256 = "83657d894c90d5681d62155c82bda9c1187827525880eda8ff5df4ec813437c3"; }; - buildInputs = [ unittest2 ]; - propagatedBuildInputs = [ funcsigs six pbr ]; + propagatedBuildInputs = [ six pbr ] ++ lib.optionals isPy27 [ funcsigs ]; # On PyPy for Python 2.7 in particular, Mock's tests have a known failure. # Mock upstream has a decoration to disable the failing test and make @@ -30,10 +29,10 @@ buildPythonPackage rec { ${python.interpreter} -m unittest discover ''; - meta = with stdenv.lib; { + meta = with lib; { description = "Mock objects for Python"; homepage = http://python-mock.sourceforge.net/; - license = stdenv.lib.licenses.bsd2; + license = licenses.bsd2; }; }