2018-04-03 11:56:35 +01:00
|
|
|
|
{ stdenv, buildPythonPackage, fetchPypi
|
2019-06-01 23:37:37 +01:00
|
|
|
|
, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil, virtualenv }:
|
2018-04-03 11:56:35 +01:00
|
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
|
pname = "pytest-virtualenv";
|
2019-06-01 23:37:37 +01:00
|
|
|
|
version = "1.7.0";
|
2018-04-03 11:56:35 +01:00
|
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
|
inherit pname version;
|
2019-06-01 23:37:37 +01:00
|
|
|
|
sha256 = "03w2zz3crblj1p6i8nq17946hbn3zqp9z7cfnifw47hi4a4fww12";
|
2018-04-03 11:56:35 +01:00
|
|
|
|
};
|
|
|
|
|
|
2019-06-01 23:37:37 +01:00
|
|
|
|
checkInputs = [ pytest pytestcov mock cmdline ];
|
|
|
|
|
propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ];
|
2018-04-03 11:56:35 +01:00
|
|
|
|
checkPhase = '' py.test tests/unit '';
|
|
|
|
|
|
2019-06-01 23:37:37 +01:00
|
|
|
|
nativeBuildInputs = [ pytest ];
|
2019-02-15 09:08:27 +00:00
|
|
|
|
|
2018-04-03 11:56:35 +01:00
|
|
|
|
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 ];
|
|
|
|
|
};
|
|
|
|
|
}
|