1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/development/python-modules/pytest/default.nix

25 lines
651 B
Nix
Raw Normal View History

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