2017-01-24 19:06:52 +00:00
|
|
|
{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 11:26:09 +00:00
|
|
|
pname = "pytest";
|
|
|
|
version = "2.7.3";
|
|
|
|
name = pname + "-" + version;
|
2017-01-24 19:06:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
|
|
|
sha256 = "1z4yi986f9n0p8qmzmn21m21m8j1x78hk3505f89baqm6pdw7afm";
|
|
|
|
};
|
|
|
|
|
|
|
|
# Disabled temporarily because of Hydra issue with namespaces
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# don't test bash builtins
|
|
|
|
rm testing/test_argcomplete.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ py ]
|
|
|
|
++ (stdenv.lib.optional isPy26 argparse)
|
|
|
|
++ stdenv.lib.optional
|
|
|
|
pkgs.config.pythonPackages.pytest.selenium or false
|
|
|
|
selenium;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
maintainers = with maintainers; [ domenkozar lovek323 madjar ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|