From 75a90b5a9bcee57b98ab9b62e4c110a10fe59dff Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Mon, 3 Dec 2018 00:37:26 -0500 Subject: [PATCH] pythonPackages.testfixtures: 6.2.0 -> 6.3.0 --- .../python-modules/testfixtures/default.nix | 24 +++++++++++++------ 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/testfixtures/default.nix b/pkgs/development/python-modules/testfixtures/default.nix index 1e35d95c5e1..f9d35297306 100644 --- a/pkgs/development/python-modules/testfixtures/default.nix +++ b/pkgs/development/python-modules/testfixtures/default.nix @@ -1,23 +1,33 @@ -{ stdenv, buildPythonPackage, fetchPypi -, mock, manuel, pytest, sybil, zope_component }: +{ stdenv, buildPythonPackage, fetchPypi, fetchpatch +, mock, pytest, sybil, zope_component }: buildPythonPackage rec { pname = "testfixtures"; - version = "6.2.0"; + version = "6.3.0"; src = fetchPypi { inherit pname version; - sha256 = "7e4df89a8bf8b8905464160f08aff131a36f0b33654fe4f9e4387afe546eae25"; + sha256 = "1x16xkw483nb1ngv74s7lgaj514pb1ldklal7kb7iwqbxcgnrh2k"; }; - checkInputs = [ mock manuel pytest sybil zope_component ]; + checkInputs = [ pytest mock sybil zope_component ]; + + patches = [ + # Fix tests for Python 3.7. Remove with the next release + (fetchpatch { + url = https://github.com/Simplistix/testfixtures/commit/6e8807543b804946aba58e2c9e92f5bdc3656a57.patch; + sha256 = "1584jz2qz04arx8z8f6d1l1vab7gi38k3akzm223rmp7j4m7yrii"; + }) + ]; checkPhase = '' # django is too much hasle to setup at the moment - pytest --ignore=testfixtures/tests/test_django testfixtures/tests + pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests ''; meta = with stdenv.lib; { - homepage = "https://github.com/Simplistix/testfixtures"; + homepage = https://github.com/Simplistix/testfixtures; + description = "A collection of helpers and mock objects for unit tests and doc tests"; + license = licenses.mit; }; }