forked from mirrors/nixpkgs
29 lines
764 B
Nix
29 lines
764 B
Nix
|
{ stdenv, pkgs, buildPythonPackage, fetchurl, isPy26, argparse, py, selenium }:
|
||
|
buildPythonPackage rec {
|
||
|
name = "pytest-2.8.7";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
||
|
sha256 = "1bwb06g64x2gky8x5hcrfpg6r351xwvafimnhm5qxq7wajz8ck7w";
|
||
|
};
|
||
|
|
||
|
# 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;
|
||
|
};
|
||
|
}
|