2020-07-18 16:06:22 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
, mock, pytest, sybil, zope_component, twisted }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "6.17.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "5ec3a0dd6f71cc4c304fbc024a10cc293d3e0b852c868014b9f233203e149bda";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock sybil zope_component twisted ];
|
|
|
|
|
|
|
|
doCheck = !isPy27;
|
|
|
|
checkPhase = ''
|
|
|
|
# django is too much hasle to setup at the moment
|
2020-07-18 16:06:22 +00:00
|
|
|
pytest -W ignore::DeprecationWarning \
|
|
|
|
--ignore=testfixtures/tests/test_django \
|
|
|
|
-k 'not (log_then_patch or our_wrap_dealing_with_mock_patch or patch_with_dict)' \
|
|
|
|
testfixtures/tests
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
|
|
license = licenses.mit;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|