blob: d3ae6ac0c9dd0c9cd3a6899ed246f10657abc685 (
plain)
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
{
lib,
buildPythonPackage,
cmdline,
importlib-metadata,
mock,
pytestCheckHook,
pytest,
pytest-fixture-config,
pytest-shutil,
setuptools,
virtualenv,
}:
buildPythonPackage {
pname = "pytest-virtualenv";
inherit (pytest-fixture-config) version src patches;
pyproject = true;
postPatch = ''
cd pytest-virtualenv
'';
build-system = [ setuptools ];
buildInputs = [ pytest ];
dependencies = [
importlib-metadata
pytest-fixture-config
pytest-shutil
virtualenv
];
nativeCheckInputs = [
cmdline
mock
pytestCheckHook
];
# Don't run integration tests
disabledTestPaths = [ "tests/integration/*" ];
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 = lib.licenses.mit;
maintainers = with lib.maintainers; [ ryansydnor ];
};
}
|