2018-04-03 12:56:35 +02:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
|
|
|
|
, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }:
|
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "pytest-virtualenv";
|
2019-02-14 08:37:28 +01:00
|
|
|
|
version = "1.6.0";
|
2018-04-03 12:56:35 +02:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2019-02-14 08:37:28 +01:00
|
|
|
|
sha256 = "d281725d10848773cb2b495d1255dd0a42fc9179e34a274c22e1c35837721f19";
|
2018-04-03 12:56:35 +02:00
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
buildInputs = [ pytest pytestcov mock cmdline ];
|
|
|
|
|
propagatedBuildInputs = [ pytest-fixture-config pytest-shutil ];
|
|
|
|
|
checkPhase = '' py.test tests/unit '';
|
|
|
|
|
|
|
|
|
|
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 what’s installed.";
|
|
|
|
|
homepage = https://github.com/manahl/pytest-plugins;
|
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
|
|
|
|
};
|
|
|
|
|
}
|