1{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
2, setuptools_scm
3}:
4buildPythonPackage rec {
5 version = "3.0.7";
6 pname = "pytest";
7 name = "${pname}-${version}";
8
9 preCheck = ''
10 # don't test bash builtins
11 rm testing/test_argcomplete.py
12 '';
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab";
17 };
18
19 buildInputs = [ hypothesis setuptools_scm ];
20 propagatedBuildInputs = [ py ]
21 ++ (stdenv.lib.optional isPy26 argparse);
22
23 meta = with stdenv.lib; {
24 maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
25 platforms = platforms.unix;
26 };
27}