nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 pytest,
7 pytest-asyncio,
8 pytestCheckHook,
9 setuptools,
10 setuptools-scm,
11}:
12
13buildPythonPackage rec {
14 pname = "pytest-httpx";
15 version = "0.36.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "Colin-b";
20 repo = "pytest_httpx";
21 tag = "v${version}";
22 hash = "sha256-WuvfhLRKbfhVehyz/0PAUlIYbwfTYlQMRC8uTWD1T00=";
23 };
24
25 nativeBuildInputs = [
26 setuptools
27 setuptools-scm
28 ];
29
30 buildInputs = [ pytest ];
31
32 propagatedBuildInputs = [ httpx ];
33
34 pythonRelaxDeps = [ "httpx" ];
35
36 nativeCheckInputs = [
37 pytest-asyncio
38 pytestCheckHook
39 ];
40
41 pythonImportsCheck = [ "pytest_httpx" ];
42
43 meta = {
44 description = "Send responses to httpx";
45 homepage = "https://github.com/Colin-b/pytest_httpx";
46 changelog = "https://github.com/Colin-b/pytest_httpx/blob/${src.tag}/CHANGELOG.md";
47 license = lib.licenses.mit;
48 maintainers = with lib.maintainers; [ fab ];
49 };
50}