a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
59 lines
1.4 KiB
Nix
59 lines
1.4 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, mock
|
|
, pytestCheckHook
|
|
, pythonAtLeast
|
|
, pythonOlder
|
|
, sybil
|
|
, twisted
|
|
, zope_component
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "testfixtures";
|
|
version = "7.0.4";
|
|
format = "setuptools";
|
|
# 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
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xSaqiXjBAC8FnxUsSt43WMShJBjfqyspdUrmIwyvPQQ=";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
sybil
|
|
twisted
|
|
zope_component
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# Django is too much hasle to setup at the moment
|
|
"testfixtures/tests/test_django"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"testfixtures/tests"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"testfixtures"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Collection of helpers and mock objects for unit tests and doc tests";
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
changelog = "https://github.com/simplistix/testfixtures/blob/${version}/CHANGELOG.rst";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|