1{ lib
2, buildPythonPackage
3, fetchPypi
4, mock
5, pytestCheckHook
6, pythonAtLeast
7, pythonOlder
8, sybil
9, twisted
10, zope-component
11}:
12
13buildPythonPackage rec {
14 pname = "testfixtures";
15 version = "7.2.0";
16 format = "setuptools";
17 # DO NOT CONTACT upstream.
18 # https://github.com/simplistix/ is only concerned with internal CI process.
19 # Any attempt by non-standard pip workflows to comment on issues will
20 # be met with hostility.
21 # https://github.com/simplistix/testfixtures/issues/169
22 # https://github.com/simplistix/testfixtures/issues/168
23
24 disabled = pythonOlder "3.6";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-jIwg3TDqETVIUHWEodqud5JI26pXEmcseruXCfD7+LI=";
29 };
30
31 nativeCheckInputs = [
32 mock
33 pytestCheckHook
34 sybil
35 twisted
36 zope-component
37 ];
38
39 disabledTestPaths = [
40 # Django is too much hasle to setup at the moment
41 "testfixtures/tests/test_django"
42 ];
43
44 pytestFlagsArray = [
45 "testfixtures/tests"
46 ];
47
48 pythonImportsCheck = [
49 "testfixtures"
50 ];
51
52 meta = with lib; {
53 description = "Collection of helpers and mock objects for unit tests and doc tests";
54 homepage = "https://github.com/Simplistix/testfixtures";
55 changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst";
56 license = licenses.mit;
57 maintainers = with maintainers; [ siriobalmelli ];
58 };
59}