depot/third_party/nixpkgs/pkgs/development/python-modules/pytest-shutil/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

28 lines
901 B
Nix

{ stdenv, lib, isPyPy, buildPythonPackage, fetchPypi
, pytest, cmdline, pytestcov, coverage, setuptools-git, mock, pathpy, execnet
, contextlib2, termcolor }:
buildPythonPackage rec {
pname = "pytest-shutil";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "0q8j0ayzmnvlraml6i977ybdq4xi096djhf30n2m1rvnvrhm45nq";
};
checkInputs = [ cmdline pytest ];
propagatedBuildInputs = [ pytestcov coverage setuptools-git mock pathpy execnet contextlib2 termcolor ];
nativeBuildInputs = [ pytest ];
checkPhase = ''
py.test ${lib.optionalString isPyPy "-k'not (test_run or test_run_integration)'"}
'';
meta = with stdenv.lib; {
description = "A goodie-bag of unix shell and environment tools for py.test";
homepage = "https://github.com/manahl/pytest-plugins";
maintainers = with maintainers; [ ryansydnor ];
license = licenses.mit;
};
}