Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 30 lines 947 B view raw
1{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27 2, mock, pytest, sybil, zope_component, twisted }: 3 4buildPythonPackage rec { 5 pname = "testfixtures"; 6 version = "6.17.1"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "5ec3a0dd6f71cc4c304fbc024a10cc293d3e0b852c868014b9f233203e149bda"; 11 }; 12 13 checkInputs = [ pytest mock sybil zope_component twisted ]; 14 15 doCheck = !isPy27; 16 checkPhase = '' 17 # django is too much hasle to setup at the moment 18 pytest -W ignore::DeprecationWarning \ 19 --ignore=testfixtures/tests/test_django \ 20 -k 'not (log_then_patch or our_wrap_dealing_with_mock_patch or patch_with_dict)' \ 21 testfixtures/tests 22 ''; 23 24 meta = with lib; { 25 homepage = "https://github.com/Simplistix/testfixtures"; 26 description = "A collection of helpers and mock objects for unit tests and doc tests"; 27 license = licenses.mit; 28 maintainers = with maintainers; [ siriobalmelli ]; 29 }; 30}