2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
|
|
|
, mock, pytest, sybil, zope_component, twisted }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2020-05-15 21:57:56 +00:00
|
|
|
version = "6.14.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-15 21:57:56 +00:00
|
|
|
sha256 = "0rh38zj8wywgqlsi5j75c7drpqhkrg50qknj1kdmvg4kdlab7ljq";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock sybil zope_component twisted ];
|
|
|
|
|
|
|
|
doCheck = !isPy27;
|
|
|
|
checkPhase = ''
|
|
|
|
# django is too much hasle to setup at the moment
|
|
|
|
pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = "https://github.com/Simplistix/testfixtures";
|
|
|
|
description = "A collection of helpers and mock objects for unit tests and doc tests";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|