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