1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pytest-httpbin,
6 pytestCheckHook,
7 pythonOlder,
8 pyyaml,
9 six,
10 yarl,
11 wrapt,
12}:
13
14buildPythonPackage rec {
15 pname = "vcrpy";
16 version = "7.0.0";
17 format = "setuptools";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchPypi {
22 inherit pname version;
23 hash = "sha256-F2ORrQQl7d4WgMWyBzjqPcf7lCUgpI0pk0SAUJhrOlA=";
24 };
25
26 propagatedBuildInputs = [
27 pyyaml
28 six
29 yarl
30 wrapt
31 ];
32
33 nativeCheckInputs = [
34 pytest-httpbin
35 pytestCheckHook
36 ];
37
38 disabledTestPaths = [ "tests/integration" ];
39
40 disabledTests = [
41 "TestVCRConnection"
42 # https://github.com/kevin1024/vcrpy/issues/645
43 "test_get_vcr_with_matcher"
44 "test_testcase_playback"
45 ];
46
47 pythonImportsCheck = [ "vcr" ];
48
49 meta = with lib; {
50 description = "Automatically mock your HTTP interactions to simplify and speed up testing";
51 homepage = "https://github.com/kevin1024/vcrpy";
52 changelog = "https://github.com/kevin1024/vcrpy/releases/tag/v${version}";
53 license = licenses.mit;
54 maintainers = [ ];
55 };
56}