2021-01-25 08:26:54 +00:00
|
|
|
|
{ lib, 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 ];
|
2021-01-24 09:19:10 +00:00
|
|
|
|
checkPhase = "py.test tests/unit ";
|
2018-04-03 11:56:35 +01:00
|
|
|
|
|
2019-06-01 23:37:37 +01:00
|
|
|
|
nativeBuildInputs = [ pytest ];
|
2019-02-15 09:08:27 +00:00
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
|
meta = with lib; {
|
2018-04-03 11:56:35 +01:00
|
|
|
|
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.";
|
2020-04-01 02:11:51 +01:00
|
|
|
|
homepage = "https://github.com/manahl/pytest-plugins";
|
2018-04-03 11:56:35 +01:00
|
|
|
|
license = licenses.mit;
|
|
|
|
|
maintainers = with maintainers; [ ryansydnor ];
|
|
|
|
|
};
|
|
|
|
|
}
|