1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 mock,
6 pytestCheckHook,
7 pythonOlder,
8 setuptools,
9 sybil,
10 twisted,
11}:
12
13buildPythonPackage rec {
14 pname = "testfixtures";
15 version = "9.1.0";
16 pyproject = true;
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.7";
25
26 src = fetchPypi {
27 inherit pname version;
28 hash = "sha256-UX6c81OUJyNTOuEQDKRd0n/geFw60nZQdfXLHLzgFII=";
29 };
30
31 build-system = [ setuptools ];
32
33 nativeCheckInputs = [
34 mock
35 pytestCheckHook
36 sybil
37 twisted
38 ];
39
40 disabledTests = [
41 "test_filter_missing"
42 "test_filter_present"
43 ];
44
45 disabledTestPaths = [
46 # Django is too much hasle to setup at the moment
47 "testfixtures/tests/test_django"
48 ];
49
50 enabledTestPaths = [ "testfixtures/tests" ];
51
52 pythonImportsCheck = [ "testfixtures" ];
53
54 meta = with lib; {
55 description = "Collection of helpers and mock objects for unit tests and doc tests";
56 homepage = "https://github.com/Simplistix/testfixtures";
57 changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst";
58 license = licenses.mit;
59 maintainers = with maintainers; [ siriobalmelli ];
60 };
61}