summary refs log tree commit diff
path: root/pkgs/development/python-modules/webtest-aiohttp/default.nix
blob: 7c6e3589600d87f47b68d0b5e6b01070742ae152 (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
{ buildPythonPackage, fetchFromGitHub, lib, isPy27, webtest, invoke, flake8
, aiohttp, pytest-aiohttp, pytestCheckHook }:

buildPythonPackage rec {
  pname = "webtest-aiohttp";
  version = "2.0.0";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "sloria";
    repo = pname;
    rev = version;
    sha256 = "1apr1x0wmnc6l8wv67z4dp00fiiygda6rwpxlspfk7nk9zz37q2j";
  };

  pythonImportsCheck = [
    "webtest_aiohttp"
  ];

  propagatedBuildInputs = [ webtest ];
  checkInputs = [ invoke flake8 aiohttp pytest-aiohttp pytestCheckHook ];

  meta = with lib; {
    description = "Provides integration of WebTest with aiohttp.web applications";
    homepage = "https://github.com/sloria/webtest-aiohttp";
    license = licenses.mit;
    maintainers = with maintainers; [ cript0nauta ];
  };
}