1{ buildPythonPackage, fetchFromGitHub, lib, isPy27, webtest, invoke, flake8
2, aiohttp, pytest-aiohttp, pytestCheckHook }:
3
4buildPythonPackage rec {
5 pname = "webtest-aiohttp";
6 version = "2.0.0";
7 disabled = isPy27;
8
9 src = fetchFromGitHub {
10 owner = "sloria";
11 repo = pname;
12 rev = version;
13 sha256 = "1apr1x0wmnc6l8wv67z4dp00fiiygda6rwpxlspfk7nk9zz37q2j";
14 };
15
16 pythonImportsCheck = [
17 "webtest_aiohttp"
18 ];
19
20 propagatedBuildInputs = [ webtest ];
21 checkInputs = [ invoke flake8 aiohttp pytest-aiohttp pytestCheckHook ];
22
23 meta = with lib; {
24 description = "Provides integration of WebTest with aiohttp.web applications";
25 homepage = "https://github.com/sloria/webtest-aiohttp";
26 license = licenses.mit;
27 maintainers = with maintainers; [ cript0nauta ];
28 };
29}