{ lib, buildPythonPackage, fetchFromGitHub, fetchpatch, setuptools, pytest-httpbin, pytestCheckHook, pyyaml, six, urllib3, yarl, wrapt, }: buildPythonPackage rec { pname = "vcrpy"; version = "7.0.0"; pyproject = true; src = fetchFromGitHub { owner = "kevin1024"; repo = "vcrpy"; tag = "v${version}"; hash = "sha256-uKVPU1DU0GcpRqPzPMSNTLLVetZeQjUMC9vcaGwy0Yk="; }; patches = [ (fetchpatch { # python 3.14 compat url = "https://github.com/kevin1024/vcrpy/commit/558c7fc625e66775da11ee406001f300e6188fb2.patch"; hash = "sha256-keShvz8zwqkenEtQ+NAnGKwSLYGbtXfpfMP8Zje2p+o="; }) ]; build-system = [ setuptools ]; dependencies = [ pyyaml six urllib3 wrapt yarl ]; nativeCheckInputs = [ pytest-httpbin pytestCheckHook ]; disabledTestPaths = [ "tests/integration" ]; disabledTests = [ "TestVCRConnection" # https://github.com/kevin1024/vcrpy/issues/645 "test_get_vcr_with_matcher" "test_testcase_playback" ]; pythonImportsCheck = [ "vcr" ]; meta = { description = "Automatically mock your HTTP interactions to simplify and speed up testing"; homepage = "https://github.com/kevin1024/vcrpy"; changelog = "https://github.com/kevin1024/vcrpy/releases/tag/v${version}"; license = lib.licenses.mit; maintainers = [ ]; }; }