1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy27
5, mock
6, pytestCheckHook
7, sybil
8, twisted
9, zope_component
10}:
11
12buildPythonPackage rec {
13 pname = "testfixtures";
14 version = "6.18.3";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-JgAQCulv/QgjNLN441VVD++LSlKab6TDT0cTCQXHQm0=";
19 };
20
21 checkInputs = [
22 pytestCheckHook
23 mock
24 sybil
25 zope_component
26 twisted
27 ];
28
29 doCheck = !isPy27;
30
31 disabledTestPaths = [
32 # Django is too much hasle to setup at the moment
33 "testfixtures/tests/test_django"
34 ];
35
36 pytestFlagsArray = [
37 "testfixtures/tests"
38 ];
39
40 pythonImportsCheck = [ "testfixtures" ];
41
42 meta = with lib; {
43 homepage = "https://github.com/Simplistix/testfixtures";
44 description = "A collection of helpers and mock objects for unit tests and doc tests";
45 license = licenses.mit;
46 maintainers = with maintainers; [ siriobalmelli ];
47 };
48}