blob: bc5c174d574329894816efa14582c4385b1038ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
buildPythonPackage,
fetchPypi,
pytestCheckHook,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "betamax";
version = "0.9.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-gjFuFnm8aHnjyDMY0Ba1S3ySJf8IxEYt5IE+IgONX5Q=";
};
build-system = [ setuptools ];
dependencies = [ requests ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "betamax" ];
disabledTestPaths = [
# Tests require network access
"tests/integration/test_hooks.py"
"tests/integration/test_placeholders.py"
"tests/integration/test_record_modes.py"
"tests/integration/test_unicode.py"
"tests/regression/test_gzip_compression.py"
"tests/regression/test_requests_2_11_body_matcher.py"
];
meta = {
description = "VCR imitation for requests";
homepage = "https://betamax.readthedocs.org/";
changelog = "https://github.com/betamaxpy/betamax/blob/${version}/HISTORY.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ pSub ];
};
}
|