nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 pytest-httpbin,
7 pytestCheckHook,
8 pyyaml,
9 six,
10 urllib3,
11 yarl,
12 wrapt,
13}:
14
15buildPythonPackage rec {
16 pname = "vcrpy";
17 version = "8.1.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "kevin1024";
22 repo = "vcrpy";
23 tag = "v${version}";
24 hash = "sha256-X6cOoj+XP0lVvf78FTb7FkNqrq5RfXtQlQ3lcOzr3D8=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 pyyaml
31 six
32 urllib3
33 wrapt
34 yarl
35 ];
36
37 nativeCheckInputs = [
38 pytest-httpbin
39 pytestCheckHook
40 ];
41
42 disabledTestPaths = [ "tests/integration" ];
43
44 disabledTests = [
45 "TestVCRConnection"
46 # https://github.com/kevin1024/vcrpy/issues/645
47 "test_get_vcr_with_matcher"
48 "test_testcase_playback"
49 ];
50
51 pythonImportsCheck = [ "vcr" ];
52
53 meta = {
54 description = "Automatically mock your HTTP interactions to simplify and speed up testing";
55 homepage = "https://github.com/kevin1024/vcrpy";
56 changelog = "https://github.com/kevin1024/vcrpy/releases/tag/${src.tag}";
57 license = lib.licenses.mit;
58 maintainers = [ ];
59 };
60}