2021-08-10 14:31:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
2022-01-19 23:45:15 +00:00
|
|
|
, pythonAtLeast
|
|
|
|
, pythonOlder
|
2021-08-10 14:31:46 +00:00
|
|
|
, sybil
|
|
|
|
, twisted
|
|
|
|
, zope_component
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2021-10-06 13:57:05 +00:00
|
|
|
version = "6.18.3";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-10-06 13:57:05 +00:00
|
|
|
sha256 = "sha256-JgAQCulv/QgjNLN441VVD++LSlKab6TDT0cTCQXHQm0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
checkInputs = [
|
|
|
|
mock
|
2022-01-19 23:45:15 +00:00
|
|
|
pytestCheckHook
|
2021-08-10 14:31:46 +00:00
|
|
|
sybil
|
|
|
|
twisted
|
2022-01-19 23:45:15 +00:00
|
|
|
zope_component
|
2021-08-10 14:31:46 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Django is too much hasle to setup at the moment
|
|
|
|
"testfixtures/tests/test_django"
|
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
disabledTests = lib.optionals (pythonAtLeast "3.10") [
|
|
|
|
# https://github.com/simplistix/testfixtures/issues/168
|
|
|
|
"test_invalid_communicate_call"
|
|
|
|
"test_invalid_kill"
|
|
|
|
"test_invalid_parameters"
|
|
|
|
"test_invalid_poll"
|
|
|
|
"test_invalid_send_signal"
|
|
|
|
"test_invalid_terminate"
|
|
|
|
"test_invalid_wait_call"
|
|
|
|
"test_replace_delattr_cant_remove"
|
|
|
|
"test_replace_delattr_cant_remove_not_strict"
|
|
|
|
];
|
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"testfixtures/tests"
|
|
|
|
];
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"testfixtures"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2022-01-19 23:45:15 +00:00
|
|
|
description = "Collection of helpers and mock objects for unit tests and doc tests";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
|
|
license = licenses.mit;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|