blob: 7f6ea4561385b5080e09426da10627cf99fb0f53 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
flask,
httpcore,
httpx,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
setuptools,
starlette,
trio,
}:
buildPythonPackage rec {
pname = "respx";
version = "0.21.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "lundberg";
repo = "respx";
rev = version;
hash = "sha256-sBb9HPvX+AKJUMWBME381F2amYdQmBiM8OguGW3lFG0=";
};
postPatch = ''
sed -i "/--cov/d" setup.cfg
'';
build-system = [ setuptools ];
dependencies = [ httpx ];
nativeCheckInputs = [
httpcore
httpx
flask
pytest-asyncio
pytestCheckHook
starlette
trio
];
disabledTests = [ "test_pass_through" ];
pythonImportsCheck = [ "respx" ];
meta = with lib; {
description = "Python library for mocking HTTPX";
homepage = "https://lundberg.github.io/respx/";
changelog = "https://github.com/lundberg/respx/blob/${version}/CHANGELOG.md";
license = licenses.bsd3;
maintainers = with maintainers; [ fab ];
};
}
|