From 85210bff62bd1f5a178ff07ff9c43a226ca335b5 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 9 Apr 2020 11:21:00 -0700 Subject: [PATCH] python2Packages.variants: fix tests --- pkgs/development/python-modules/variants/default.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/variants/default.nix b/pkgs/development/python-modules/variants/default.nix index af2224e3536e..11c50646700d 100644 --- a/pkgs/development/python-modules/variants/default.nix +++ b/pkgs/development/python-modules/variants/default.nix @@ -1,10 +1,13 @@ { buildPythonPackage +, isPy27 , fetchPypi , pytestrunner , setuptools_scm +, singledispatch , pytest , lib }: + buildPythonPackage rec { pname = "variants"; version = "0.2.0"; @@ -21,12 +24,12 @@ buildPythonPackage rec { checkInputs = [ pytest - ]; - + ] ++ lib.optionals isPy27 [ singledispatch ]; + meta = with lib; { description = "Library providing syntactic sugar for creating variant forms of a canonical function"; homepage = "https://github.com/python-variants/variants"; license = licenses.asl20; maintainers = with maintainers; [ rakesh4g ]; }; -} \ No newline at end of file +}