about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/aresponses/default.nix
blob: f2a7f0f8f26bccf0cd93cbf1944eb29285226d5d (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
{ lib
, aiohttp
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, pytest
, pytest-asyncio
, pytest-cov
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "aresponses";
  version = "2.1.4";

  disabled = !isPy3k;

  src = fetchFromGitHub {
    owner = "CircleUp";
    repo = pname;
    rev = version;
    sha256 = "sha256-crMiMZ2IDuYDFt8Bixg3NRhlUa2tqmfzd7ZeHM+2Iu4=";
  };

  propagatedBuildInputs = [
    aiohttp
  ];

  buildInputs = [
    pytest
    pytest-asyncio
  ];

  checkInputs = [
    aiohttp
    pytest-asyncio
    pytest-cov
    pytestCheckHook
  ];

  # Disable tests which requires network access
  disabledTests = [
    "test_foo"
    "test_passthrough"
  ];

  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [ "aresponses" ];

  meta = with lib; {
    description = "Asyncio testing server";
    homepage = "https://github.com/circleup/aresponses";
    license = licenses.mit;
    maintainers = with maintainers; [ makefu ];
  };
}