2021-08-09 17:02:40 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2022-01-13 21:17:32 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2021-08-09 17:02:40 +00:00
|
|
|
, sybil
|
|
|
|
, twisted
|
|
|
|
, zope_component
|
|
|
|
}:
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2022-03-03 08:48:55 +00:00
|
|
|
version = "6.18.5";
|
2022-01-13 21:17:32 +00:00
|
|
|
format = "setuptools";
|
2022-02-10 21:52:55 +00:00
|
|
|
# DO NOT CONTACT upstream.
|
|
|
|
# https://github.com/simplistix/ is only concerned with internal CI process.
|
|
|
|
# Any attempt by non-standard pip workflows to comment on issues will
|
|
|
|
# be met with hostility.
|
|
|
|
# https://github.com/simplistix/testfixtures/issues/169
|
|
|
|
# https://github.com/simplistix/testfixtures/issues/168
|
2022-01-13 21:17:32 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-03 08:48:55 +00:00
|
|
|
hash = "sha256-Atrog/Vn9bcP0608nu+5WRLniskL5sdES14vRr9XLIQ=";
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
|
2021-08-09 17:02:40 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
2022-01-13 21:17:32 +00:00
|
|
|
pytestCheckHook
|
2021-08-09 17:02:40 +00:00
|
|
|
sybil
|
|
|
|
twisted
|
2022-01-13 21:17:32 +00:00
|
|
|
zope_component
|
2021-08-09 17:02:40 +00:00
|
|
|
];
|
2017-11-07 12:36:48 +00:00
|
|
|
|
2021-08-09 17:02:40 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Django is too much hasle to setup at the moment
|
|
|
|
"testfixtures/tests/test_django"
|
|
|
|
];
|
|
|
|
|
|
|
|
pytestFlagsArray = [
|
|
|
|
"testfixtures/tests"
|
|
|
|
];
|
|
|
|
|
2022-01-13 21:17:32 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"testfixtures"
|
|
|
|
];
|
2017-11-07 12:36:48 +00:00
|
|
|
|
2020-07-01 18:22:55 +00:00
|
|
|
meta = with lib; {
|
2022-01-13 21:17:32 +00:00
|
|
|
description = "Collection of helpers and mock objects for unit tests and doc tests";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
2018-12-03 05:37:26 +00:00
|
|
|
license = licenses.mit;
|
2020-07-01 18:22:55 +00:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
}
|