1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pytest,
6 vcrpy,
7}:
8
9buildPythonPackage rec {
10 pname = "pytest-vcr";
11 version = "1.0.2";
12 format = "setuptools";
13
14 src = fetchFromGitHub {
15 owner = "ktosiek";
16 repo = "pytest-vcr";
17 rev = version;
18 sha256 = "1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i";
19 };
20
21 buildInputs = [ pytest ];
22
23 propagatedBuildInputs = [ vcrpy ];
24
25 # Tests are using an obsolete attribute 'config'
26 # https://github.com/ktosiek/pytest-vcr/issues/43
27 doCheck = false;
28 pythonImportsCheck = [ "pytest_vcr" ];
29
30 meta = with lib; {
31 description = "Integration VCR.py into pytest";
32 homepage = "https://github.com/ktosiek/pytest-vcr";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 };
36}