2017-01-24 20:08:17 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, isPy26, argparse, hypothesis, py }:
|
2017-01-24 20:06:52 +01:00
|
|
|
buildPythonPackage rec {
|
|
|
|
name = "pytest-${version}";
|
2017-01-24 20:08:17 +01:00
|
|
|
version = "3.0.6";
|
2017-01-24 20:06:52 +01:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# don't test bash builtins
|
|
|
|
rm testing/test_argcomplete.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://pypi/p/pytest/${name}.tar.gz";
|
2017-01-24 20:08:17 +01:00
|
|
|
sha256 = "0h6rfp7y7c5mqwfm9fy5fq4l9idnp160c82ylcfjg251y6lk8d34";
|
2017-01-24 20:06:52 +01:00
|
|
|
};
|
|
|
|
|
2017-01-24 20:08:17 +01:00
|
|
|
buildInputs = [ hypothesis ];
|
|
|
|
propagatedBuildInputs = [ py ]
|
|
|
|
++ (stdenv.lib.optional isPy26 argparse);
|
2017-01-24 20:06:52 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-01-24 20:08:17 +01:00
|
|
|
maintainers = with maintainers; [ domenkozar lovek323 madjar lsix ];
|
2017-01-24 20:06:52 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|