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";
|
2023-01-11 07:51:40 +00:00
|
|
|
version = "7.0.4";
|
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;
|
2023-01-11 07:51:40 +00:00
|
|
|
hash = "sha256-xSaqiXjBAC8FnxUsSt43WMShJBjfqyspdUrmIwyvPQQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-08-10 14:31:46 +00:00
|
|
|
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";
|
2023-01-11 07:51:40 +00:00
|
|
|
changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|