depot/third_party/nixpkgs/pkgs/development/python-modules/vcrpy/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

57 lines
983 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, mock
, pytest-httpbin
, pytestCheckHook
, pythonOlder
, pyyaml
, six
, yarl
, wrapt
}:
buildPythonPackage rec {
pname = "vcrpy";
version = "4.2.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-fNPoGixJLgHCgfGAvMKoa1ILFz0rZWy12J2ZR1Qj4BM=";
};
propagatedBuildInputs = [
pyyaml
six
yarl
wrapt
];
nativeCheckInputs = [
pytest-httpbin
pytestCheckHook
];
disabledTestPaths = [
"tests/integration"
];
disabledTests = [
"TestVCRConnection"
];
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; [ ];
};
}