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

25 lines
888 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, buildPythonPackage, fetchPypi
, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil, virtualenv }:
buildPythonPackage rec {
pname = "pytest-virtualenv";
version = "1.7.0";
src = fetchPypi {
inherit pname version;
sha256 = "03w2zz3crblj1p6i8nq17946hbn3zqp9z7cfnifw47hi4a4fww12";
};
checkInputs = [ pytest pytestcov mock cmdline ];
propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ];
checkPhase = '' py.test tests/unit '';
nativeBuildInputs = [ pytest ];
meta = with stdenv.lib; {
description = "Create a Python virtual environment in your test that cleans up on teardown. The fixture has utility methods to install packages and list whats installed.";
homepage = "https://github.com/manahl/pytest-plugins";
license = licenses.mit;
maintainers = with maintainers; [ ryansydnor ];
};
}