diff options
author | Elis Hirwing <elis@hirwing.se> | 2018-04-03 12:56:35 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-04-04 19:46:00 +0200 |
commit | 17f96f382d9137ad31ebe98f8797a9374d95b9d8 (patch) | |
tree | 00a88db554f849c807feb9676fb7ceccf6105802 /pkgs/development/python-modules/pytest-virtualenv | |
parent | f1a83151df32262e420d85de2eaa0ae17b7c0c4a (diff) | |
download | nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar.gz nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar.bz2 nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar.lz nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar.xz nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.tar.zst nixlib-17f96f382d9137ad31ebe98f8797a9374d95b9d8.zip |
pythonPackages.pytest-virtualenv: Move to own file
Diffstat (limited to 'pkgs/development/python-modules/pytest-virtualenv')
-rw-r--r-- | pkgs/development/python-modules/pytest-virtualenv/default.nix | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pytest-virtualenv/default.nix b/pkgs/development/python-modules/pytest-virtualenv/default.nix new file mode 100644 index 000000000000..1338cbb153f3 --- /dev/null +++ b/pkgs/development/python-modules/pytest-virtualenv/default.nix @@ -0,0 +1,23 @@ +{ stdenv, buildPythonPackage, fetchPypi +, pytest, pytestcov, mock, cmdline, pytest-fixture-config, pytest-shutil }: + +buildPythonPackage rec { + pname = "pytest-virtualenv"; + version = "1.2.7"; + + src = fetchPypi { + inherit pname version; + sha256 = "0mb76zhlak4qjjq2h7kaxbihk1b9plmimbzcb8qv4906cxl69ysi"; + }; + + 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 what’s installed."; + homepage = https://github.com/manahl/pytest-plugins; + license = licenses.mit; + maintainers = with maintainers; [ ryansydnor ]; + }; +} |