blob: 8c460e3be2c6ef41e1914eb2e736f73c3fc52f4b (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytest,
vcrpy,
}:
buildPythonPackage rec {
pname = "pytest-vcr";
version = "1.0.2";
format = "setuptools";
src = fetchFromGitHub {
owner = "ktosiek";
repo = "pytest-vcr";
rev = version;
sha256 = "1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i";
};
buildInputs = [ pytest ];
propagatedBuildInputs = [ vcrpy ];
# Tests are using an obsolete attribute 'config'
# https://github.com/ktosiek/pytest-vcr/issues/43
doCheck = false;
pythonImportsCheck = [ "pytest_vcr" ];
meta = {
description = "Integration VCR.py into pytest";
homepage = "https://github.com/ktosiek/pytest-vcr";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fab ];
};
}
|