1{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
2buildPythonPackage rec {
3 name = "pytest-2.8.7";
4
5 src = fetchurl {
6 url = "mirror://pypi/p/pytest/${name}.tar.gz";
7 sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w";
8 };
9
10 # Disabled temporarily because of Hydra issue with namespaces
11 doCheck = false;
12
13 preCheck = ''
14 # don't test bash builtins
15 rm testing/test_argcomplete.py
16 '';
17
18 propagatedBuildInputs = [ py ]
19 ++ (stdenv.lib.optional isPy26 argparse)
20 ++ stdenv.lib.optional
21 pkgs.config.pythonPackages.pytest.selenium or false
22 selenium;
23
24 meta = with stdenv.lib; {
25 maintainers = with maintainers; [ domenkozar lovek323 madjar ];
26 platforms = platforms.unix;
27 };
28}