e0d1b75f19
GitOrigin-RevId: fe01052444c1d66ed6ef76df2af798c9769e9e79
49 lines
918 B
Nix
49 lines
918 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchpatch
|
|
, fetchPypi
|
|
, isPy27
|
|
, mock
|
|
, pytestCheckHook
|
|
, sybil
|
|
, twisted
|
|
, zope_component
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "testfixtures";
|
|
version = "6.18.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-1L0cT5DqyQpz4b3FnDHQOUPyGNaH88WgnkhHiEGor18=";
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
mock
|
|
sybil
|
|
zope_component
|
|
twisted
|
|
];
|
|
|
|
doCheck = !isPy27;
|
|
|
|
disabledTestPaths = [
|
|
# Django is too much hasle to setup at the moment
|
|
"testfixtures/tests/test_django"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"testfixtures/tests"
|
|
];
|
|
|
|
pythonImportsCheck = [ "testfixtures" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ siriobalmelli ];
|
|
};
|
|
}
|