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";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "6.18.5";
|
2022-01-19 23:45:15 +00:00
|
|
|
format = "setuptools";
|
2022-02-20 05:27:41 +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-19 23:45:15 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-03-05 16:20:37 +00:00
|
|
|
hash = "sha256-Atrog/Vn9bcP0608nu+5WRLniskL5sdES14vRr9XLIQ=";
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|