2019-10-26 23:46:50 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy27
|
|
|
|
, mock, pytest, sybil, zope_component, twisted }:
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "testfixtures";
|
2019-10-26 23:46:50 +01:00
|
|
|
version = "6.10.0";
|
2017-11-07 12:36:48 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2019-10-26 23:46:50 +01:00
|
|
|
sha256 = "1kiv60i0s67v34x28j6cshby7n7mbhd7a7val639yvvlh1f0q8wx";
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
|
2019-10-26 23:46:50 +01:00
|
|
|
checkInputs = [ pytest mock sybil zope_component twisted ];
|
2017-11-07 12:36:48 +00:00
|
|
|
|
2019-10-26 23:46:50 +01:00
|
|
|
doCheck = !isPy27;
|
2017-11-07 12:36:48 +00:00
|
|
|
checkPhase = ''
|
|
|
|
# django is too much hasle to setup at the moment
|
2018-12-03 05:37:26 +00:00
|
|
|
pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
|
2017-11-07 12:36:48 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-12-03 05:37:26 +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;
|
2017-11-07 12:36:48 +00:00
|
|
|
};
|
|
|
|
}
|