1{ stdenv, buildPythonPackage, fetchPypi, fetchpatch, isPy27
2, mock, pytest, sybil, zope_component, twisted }:
3
4buildPythonPackage rec {
5 pname = "testfixtures";
6 version = "6.10.3";
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "8f22100d4fb841b958f64e71c8820a32dc46f57d4d7e077777b932acd87b7327";
11 };
12
13 checkInputs = [ pytest mock sybil zope_component twisted ];
14
15 doCheck = !isPy27;
16 checkPhase = ''
17 # django is too much hasle to setup at the moment
18 pytest -W ignore::DeprecationWarning --ignore=testfixtures/tests/test_django testfixtures/tests
19 '';
20
21 meta = with stdenv.lib; {
22 homepage = https://github.com/Simplistix/testfixtures;
23 description = "A collection of helpers and mock objects for unit tests and doc tests";
24 license = licenses.mit;
25 };
26}