blob: 5eea9a5579a19d667b9cf73b9425e4056ab2bb9b (
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
|
{ lib
, stdenv
, async-timeout
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
version = "3.4.1";
pname = "asgiref";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "sha256-aXD46qH5sTTmp0rlzQGLAN+MfIz1u6obCwtfqoIYgBA=";
};
propagatedBuildInputs = [
async-timeout
];
checkInputs = [
pytestCheckHook
pytest-asyncio
];
disabledTests = lib.optionals stdenv.isDarwin [
"test_multiprocessing"
];
pythonImportsCheck = [ "asgiref" ];
meta = with lib; {
description = "Reference ASGI adapters and channel layers";
homepage = "https://github.com/django/asgiref";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|