blob: 2407adefd5cebded9e0348bf5acab0467405a687 (
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
|
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytest
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "aresponses";
version = "2.1.0";
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "CircleUp";
repo = pname;
rev = version;
sha256 = "0dc1y4s6kpmr0ar63kkyghvisgbmb8qq5wglmjclrpzd5180mjcl";
};
propagatedBuildInputs = [
aiohttp
];
buildInputs = [
pytest
pytest-asyncio
];
checkInputs = [
aiohttp
pytestCheckHook
pytest-asyncio
];
# Disable tests which requires network access
disabledTests = [
"test_foo"
"test_passthrough"
];
pythonImportsCheck = [ "aresponses" ];
meta = with lib; {
description = "Asyncio testing server";
homepage = "https://github.com/circleup/aresponses";
license = licenses.mit;
maintainers = with maintainers; [ makefu ];
};
}
|