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.5.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "57c13433d94f9ffde3be6534177d10fb0c1507cc499319128958ca91a65cb23f";
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}