1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytest 5, vcrpy 6}: 7 8buildPythonPackage rec { 9 pname = "pytest-vcr"; 10 version = "1.0.2"; 11 12 src = fetchFromGitHub { 13 owner = "ktosiek"; 14 repo = pname; 15 rev = version; 16 sha256 = "1i6fin91mklvbi8jzfiswvwf1m91f43smpj36a17xrzk4gisfs6i"; 17 }; 18 19 buildInputs = [ pytest ]; 20 21 propagatedBuildInputs = [ 22 vcrpy 23 ]; 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}