summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-virtualenv/default.nix
blob: c4a66cc48e5d9879aceab62a86cffa461d5993aa (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ lib, buildPythonPackage, fetchPypi
, pytest, pytest-cov, mock, cmdline, pytest-fixture-config, pytest-shutil, virtualenv }:

buildPythonPackage rec {
  pname = "pytest-virtualenv";
  version = "1.7.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "03w2zz3crblj1p6i8nq17946hbn3zqp9z7cfnifw47hi4a4fww12";
  };

  checkInputs = [ pytest pytest-cov mock cmdline ];
  propagatedBuildInputs = [ pytest-fixture-config pytest-shutil virtualenv ];
  checkPhase = "py.test tests/unit ";

  nativeBuildInputs = [ pytest ];

  meta = with lib; {
    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 ];
  };
}