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 {
|
2017-04-18 09:15:53 +02:00
|
|
|
version = "3.0.7";
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "pytest";
|
|
|
|
name = "${pname}-${version}";
|
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-04-18 09:15:53 +02:00
|
|
|
sha256 = "b70696ebd1a5e6b627e7e3ac1365a4bc60aaf3495e843c1e70448966c5224cab";
|
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;
|
|
|
|
};
|
|
|
|
}
|