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-08-12 12:06:08 +00:00
|
|
|
version = "7.0.0";
|
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-08-12 12:06:08 +00:00
|
|
|
hash = "sha256-jsrFowh5NFFkBZTZykLOibmHcR4eTJMShVMh7CH2zLQ=";
|
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
|
|
|
};
|
|
|
|
}
|