2021-08-10 14:31:46 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchpatch
|
|
|
|
, fetchPypi
|
|
|
|
, isPy27
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
, sybil
|
|
|
|
, twisted
|
|
|
|
, zope_component
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2021-08-10 14:31:46 +00:00
|
|
|
version = "6.18.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-08-10 14:31:46 +00:00
|
|
|
sha256 = "sha256-1L0cT5DqyQpz4b3FnDHQOUPyGNaH88WgnkhHiEGor18=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-08-10 14:31:46 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
mock
|
|
|
|
sybil
|
|
|
|
zope_component
|
|
|
|
twisted
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
doCheck = !isPy27;
|
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"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "testfixtures" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
|
|
license = licenses.mit;
|
2020-07-18 16:06:22 +00:00
|
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|