1{ lib, buildPythonPackage, fetchPypi 2, pytest, pytest-cov, mock, cmdline, pytest-fixture-config, pytest-shutil, virtualenv }: 3 4buildPythonPackage rec { 5 pname = "pytest-virtualenv"; 6 version = "1.7.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "03w2zz3crblj1p6i8nq17946hbn3zqp9z7cfnifw47hi4a4fww12"; 11 }; 12 13 checkInputs = [ pytest pytest-cov mock cmdline ]; 14 propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ]; 15 checkPhase = "py.test tests/unit "; 16 17 nativeBuildInputs = [ pytest ]; 18 19 meta = with lib; { 20 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."; 21 homepage = "https://github.com/manahl/pytest-plugins"; 22 license = licenses.mit; 23 maintainers = with maintainers; [ ryansydnor ]; 24 }; 25}