2019-10-26 15:46:50 -07:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
|
|
|
, mock, pytest, sybil, zope_component, twisted }:
|
2017-11-07 04:36:48 -08:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2019-11-11 03:13:41 -08:00
|
|
|
version = "6.10.1";
|
2017-11-07 04:36:48 -08:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-11-11 03:13:41 -08:00
|
|
|
sha256 = "abbca7ed381d34a77699c6cb68be67919a1e7f5cf8728b57396145417fa34110";
|
2017-11-07 04:36:48 -08:00
|
|
|
};
|
|
|
|
|
2019-10-26 15:46:50 -07:00
|
|
|
checkInputs = [ pytest mock sybil zope_component twisted ];
|
2017-11-07 04:36:48 -08:00
|
|
|
|
2019-10-26 15:46:50 -07:00
|
|
|
doCheck = !isPy27;
|
2017-11-07 04:36:48 -08:00
|
|
|
checkPhase = ''
|
|
|
|
# django is too much hasle to setup at the moment
|
2018-12-02 21:37:26 -08:00
|
|
|
pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
|
2017-11-07 04:36:48 -08:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-02 21:37:26 -08:00
|
|
|
homepage = https://github.com/Simplistix/testfixtures;
|
|
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
|
|
license = licenses.mit;
|
2017-11-07 04:36:48 -08:00
|
|
|
};
|
|
|
|
}
|