1{
2 lib,
3 buildPythonPackage,
4 cmdline,
5 importlib-metadata,
6 mock,
7 pytestCheckHook,
8 pytest,
9 pytest-fixture-config,
10 pytest-shutil,
11 setuptools,
12 virtualenv,
13}:
14
15buildPythonPackage rec {
16 pname = "pytest-virtualenv";
17 inherit (pytest-fixture-config) version src;
18 pyproject = true;
19
20 sourceRoot = "${src.name}/pytest-virtualenv";
21
22 build-system = [ setuptools ];
23
24 buildInputs = [ pytest ];
25
26 dependencies = [
27 importlib-metadata
28 pytest-fixture-config
29 pytest-shutil
30 virtualenv
31 ];
32
33 nativeCheckInputs = [
34 cmdline
35 mock
36 pytestCheckHook
37 ];
38
39 # Don't run integration tests
40 disabledTestPaths = [ "tests/integration/*" ];
41
42 meta = with lib; {
43 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";
44 homepage = "https://github.com/manahl/pytest-plugins";
45 license = licenses.mit;
46 maintainers = with maintainers; [ ryansydnor ];
47 };
48}