blob: d524457ebbb443c838622b19982e0965d6dac943 (
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
60
61
62
63
64
|
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, fetchpatch
, poetry-core
, aiohttp
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pytest-mockservers";
version = "0.6.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "Gr1N";
repo = pname;
rev = version;
hash = "sha256-Mb3wSbambC1h+lFI+fafwZzm78IvADNAsF/Uw60DFHc=";
};
patches = [
# https://github.com/Gr1N/pytest-mockservers/pull/75
(fetchpatch {
name = "use-poetry-core.patch";
url = "https://github.com/Gr1N/pytest-mockservers/commit/c7731186a4e12851ab1c15ab56e652bb48ed59c4.patch";
hash = "sha256-/5X3xjJwt2gs3t6f/6n1QZ+CTBq/5+cQE+MgNWyz+Hs=";
})
];
nativeBuildInputs = [
poetry-core
];
buildInputs = [
pytest
];
propagatedBuildInputs = [
aiohttp
pytest-asyncio
];
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"pytest_mockservers"
];
meta = with lib; {
description = "A set of fixtures to test your requests to HTTP/UDP servers";
homepage = "https://github.com/Gr1N/pytest-mockservers";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|