Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 = "8.3.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-1MC4SvLyZ2EPkIAJtQ1vmDpOWK3iLGe6tnh7WkAtWcA="; 29 }; 30 31 build-system = [ setuptools ]; 32 33 nativeCheckInputs = [ 34 mock 35 pytestCheckHook 36 sybil 37 twisted 38 ]; 39 40 disabledTestPaths = [ 41 # Django is too much hasle to setup at the moment 42 "testfixtures/tests/test_django" 43 ]; 44 45 pytestFlagsArray = [ "testfixtures/tests" ]; 46 47 pythonImportsCheck = [ "testfixtures" ]; 48 49 meta = with lib; { 50 description = "Collection of helpers and mock objects for unit tests and doc tests"; 51 homepage = "https://github.com/Simplistix/testfixtures"; 52 changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst"; 53 license = licenses.mit; 54 maintainers = with maintainers; [ siriobalmelli ]; 55 }; 56}