1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, httpx
5, pytest
6, pytest-asyncio
7, pytestCheckHook
8}:
9
10buildPythonPackage rec {
11 pname = "pytest-httpx";
12 version = "0.13.0";
13
14 src = fetchFromGitHub {
15 owner = "Colin-b";
16 repo = "pytest_httpx";
17 rev = "v${version}";
18 sha256 = "0lh7df3ysxmjzvx6242xb6qiwpfxrnj70kjmw5sndvzmy5dfpxfc";
19 };
20
21 buildInputs = [ pytest ];
22
23 propagatedBuildInputs = [
24 httpx
25 ];
26
27 checkInputs = [
28 pytest-asyncio
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "pytest_httpx" ];
33
34 meta = with lib; {
35 description = "Send responses to httpx";
36 homepage = "https://github.com/Colin-b/pytest_httpx";
37 license = licenses.mit;
38 maintainers = with maintainers; [ SuperSandro2000 ];
39 };
40}