From 47da93813359adae621db9dd89a15825e746f8b9 Mon Sep 17 00:00:00 2001 From: Tobias Happ Date: Thu, 27 Dec 2018 03:46:51 +0100 Subject: [PATCH] pythonPackages.dependency-injector: 3.14.2 -> 3.14.3 --- .../dependency-injector/default.nix | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/dependency-injector/default.nix b/pkgs/development/python-modules/dependency-injector/default.nix index b31194bf17cf..ec55fed377bb 100644 --- a/pkgs/development/python-modules/dependency-injector/default.nix +++ b/pkgs/development/python-modules/dependency-injector/default.nix @@ -1,19 +1,26 @@ -{ stdenv, buildPythonPackage, fetchPypi, six, unittest2 }: +{ stdenv, buildPythonPackage, fetchPypi, isPy3k, six, unittest2 }: + +let + testPath = + if isPy3k + then "test_*_py3.py" + else "test_*_py2_py3.py"; +in buildPythonPackage rec { pname = "dependency-injector"; - version = "3.14.2"; + version = "3.14.3"; src = fetchPypi { inherit pname version; - sha256 = "f478a26e9bf3111ce98bbfb8502af274643947f87a7e12a6481a35eaa693062b"; + sha256 = "07366palyav9bawyq2b1gi76iamjkq6r5akzzbqv8s930sxq6yim"; }; propagatedBuildInputs = [ six ]; checkInputs = [ unittest2 ]; checkPhase = '' - unit2 discover tests/unit + unit2 discover -s tests/unit -p "${testPath}" ''; meta = with stdenv.lib; {