nixpkgs-suyu/pkgs/development/python-modules/pytest-virtualenv/default.nix
2018-04-08 11:34:56 +02:00

23 lines
840 B
Nix
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{ stdenv, buildPythonPackage, fetchPypi
, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }:
buildPythonPackage rec {
pname = "pytest-virtualenv";
version = "1.3.0";
src = fetchPypi {
inherit pname version;
sha256 = "8d8a0b9b57f5efb7db6457c1f57347e35fe332979ecefe592d5324430ae3ed7f";
};
buildInputs = [ pytest pytestcov mock cmdline ];
propagatedBuildInputs = [ pytest-fixture-config pytest-shutil ];
checkPhase = '' py.test tests/unit '';
meta = with stdenv.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 whats installed.";
homepage = https://github.com/manahl/pytest-plugins;
license = licenses.mit;
maintainers = with maintainers; [ ryansydnor ];
};
}