2020-07-01 19:22:55 +01:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
2019-10-26 23:46:50 +01:00
|
|
|
, mock, pytest, sybil, zope_component, twisted }:
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2020-10-25 09:06:58 +00:00
|
|
|
version = "6.14.2";
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-25 09:06:58 +00:00
|
|
|
sha256 = "14d9907390f5f9c7189b3d511b64f34f1072d07cc13b604a57e1bb79029376e3";
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
|
2019-10-26 23:46:50 +01:00
|
|
|
checkInputs = [ pytest mock sybil zope_component twisted ];
|
2017-11-07 12:36:48 +00:00
|
|
|
|
2019-10-26 23:46:50 +01:00
|
|
|
doCheck = !isPy27;
|
2017-11-07 12:36:48 +00:00
|
|
|
checkPhase = ''
|
|
|
|
# django is too much hasle to setup at the moment
|
2020-07-01 19:22:55 +01: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
|
2017-11-07 12:36:48 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-01 19:22:55 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
2018-12-03 05:37:26 +00:00
|
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
|
|
license = licenses.mit;
|
2020-07-01 19:22:55 +01:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
}
|