Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, buildPythonPackage, fetchPypi 2, pytest_3, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }: 3 4buildPythonPackage rec { 5 pname = "pytest-virtualenv"; 6 version = "1.6.0"; 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "d281725d10848773cb2b495d1255dd0a42fc9179e34a274c22e1c35837721f19"; 11 }; 12 13 checkInputs = [ pytest_3 pytestcov mock cmdline ]; 14 propagatedBuildInputs = [ pytest-fixture-config pytest-shutil ]; 15 checkPhase = '' py.test tests/unit ''; 16 17 nativeBuildInputs = [ pytest_3 ]; 18 19 meta = with stdenv.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}