1{ lib 2, buildPythonPackage 3, fetchPypi 4, pbr 5, python_mimeparse 6, extras 7, unittest2 8, traceback2 9, testscenarios 10}: 11 12buildPythonPackage rec { 13 pname = "testtools"; 14 version = "2.3.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "5827ec6cf8233e0f29f51025addd713ca010061204fdea77484a2934690a0559"; 19 }; 20 21 propagatedBuildInputs = [ pbr python_mimeparse extras unittest2 ]; 22 buildInputs = [ traceback2 ]; 23 24 # testscenarios has a circular dependency on testtools 25 doCheck = false; 26 checkInputs = [ testscenarios ]; 27 28 # testtools 2.0.0 and up has a circular run-time dependency on futures 29 postPatch = '' 30 substituteInPlace requirements.txt --replace "fixtures>=1.3.0" "" 31 ''; 32 33 meta = { 34 description = "A set of extensions to the Python standard library's unit testing framework"; 35 homepage = https://pypi.python.org/pypi/testtools; 36 license = lib.licenses.mit; 37 }; 38}