1{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, attrs, hypothesis, py
2, setuptools_scm, setuptools, six, pluggy, funcsigs, isPy3k
3}:
4buildPythonPackage rec {
5 version = "3.4.0";
6 pname = "pytest";
7
8 preCheck = ''
9 # don't test bash builtins
10 rm testing/test_argcomplete.py
11 '';
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "6074ea3b9c999bd6d0df5fa9d12dd95ccd23550df2a582f5f5b848331d2e82ca";
16 };
17
18 checkInputs = [ hypothesis ];
19 buildInputs = [ setuptools_scm ];
20 propagatedBuildInputs = [ attrs py setuptools six pluggy ]
21 ++ (stdenv.lib.optional (!isPy3k) funcsigs)
22 ++ (stdenv.lib.optional isPy26 argparse);
23
24 meta = with stdenv.lib; {
25 maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
26 platforms = platforms.unix;
27 description = "Framework for writing tests";
28 };
29}