2c76a4cb41
GitOrigin-RevId: c757e9bd77b16ca2e03c89bf8bc9ecb28e0c06ad
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pytest-httpbin
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyyaml
|
|
, six
|
|
, yarl
|
|
, wrapt
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "vcrpy";
|
|
version = "5.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-u/FTLyYYoE8RvOKpmvOpZHoyyICVcpP/keCl8Ye2s9I=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyyaml
|
|
six
|
|
yarl
|
|
wrapt
|
|
];
|
|
|
|
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 = with lib; {
|
|
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 = licenses.mit;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|