1{ stdenv, buildPythonPackage, fetchPypi, isPy26, argparse, hypothesis, py
2, setuptools_scm
3}:
4buildPythonPackage rec {
5 version = "3.2.1";
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 = "4c2159d2be2b4e13fa293e7a72bdf2f06848a017150d5c6d35112ce51cfd74ce";
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}