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