blob: 31d094589845d38c96f15fc7291246b219ee4540 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
setuptools,
pytest-httpbin,
pytestCheckHook,
pyyaml,
six,
urllib3,
yarl,
wrapt,
}:
buildPythonPackage rec {
pname = "vcrpy";
version = "7.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "kevin1024";
repo = "vcrpy";
tag = "v${version}";
hash = "sha256-uKVPU1DU0GcpRqPzPMSNTLLVetZeQjUMC9vcaGwy0Yk=";
};
patches = [
(fetchpatch {
# python 3.14 compat
url = "https://github.com/kevin1024/vcrpy/commit/558c7fc625e66775da11ee406001f300e6188fb2.patch";
hash = "sha256-keShvz8zwqkenEtQ+NAnGKwSLYGbtXfpfMP8Zje2p+o=";
})
];
build-system = [ setuptools ];
dependencies = [
pyyaml
six
urllib3
wrapt
yarl
];
nativeCheckInputs = [
pytest-httpbin
pytestCheckHook
];
disabledTestPaths = [ "tests/integration" ];
disabledTests = [
"TestVCRConnection"
# https://github.com/kevin1024/vcrpy/issues/645
"test_get_vcr_with_matcher"
"test_testcase_playback"
];
pythonImportsCheck = [ "vcr" ];
meta = {
description = "Automatically mock your HTTP interactions to simplify and speed up testing";
homepage = "https://github.com/kevin1024/vcrpy";
changelog = "https://github.com/kevin1024/vcrpy/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}
|