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