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