From e800ba8df74781b210ee2e0078ff8acddb1bc24a Mon Sep 17 00:00:00 2001 From: Fernando J Pando Date: Thu, 18 Aug 2016 10:17:53 -0400 Subject: [PATCH] pytest-virtualenv: init pytest-virtualenv-1.1.0 Tested on Linux - python 2.7 - python 3.5 --- pkgs/top-level/python-packages.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 3eebe1366b3c..91a542abd08c 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4889,6 +4889,26 @@ in modules // { }; }); + pytest-virtualenv = buildPythonPackage rec { + name = "${pname}-${version}"; + pname = "pytest-virtualenv"; + version = "1.1.0"; + src = pkgs.fetchurl { + url = "mirror://pypi/p/${pname}/${name}.tar.gz"; + sha256 = "093f5fa479ee6201e48db367c307531dc8b800609b0c3ddca9c01e0fd466a669"; + }; + buildInputs = with self; [ pytestcov mock cmdline ]; + propagatedBuildInputs = with self; [ pytest-fixture-config pytest-shutil pytest ]; + checkPhase = '' py.test tests/unit ''; + meta = { + 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 ]; + platforms = platforms.all; + }; + }; + pytest_xdist = buildPythonPackage rec { name = "pytest-xdist-1.8";