1{ lib 2, stdenv 3, async-timeout 4, buildPythonPackage 5, fetchFromGitHub 6, pytest-asyncio 7, pytestCheckHook 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 version = "3.4.1"; 13 pname = "asgiref"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchFromGitHub { 18 owner = "django"; 19 repo = pname; 20 rev = version; 21 sha256 = "sha256-aXD46qH5sTTmp0rlzQGLAN+MfIz1u6obCwtfqoIYgBA="; 22 }; 23 24 propagatedBuildInputs = [ 25 async-timeout 26 ]; 27 28 checkInputs = [ 29 pytestCheckHook 30 pytest-asyncio 31 ]; 32 33 disabledTests = lib.optionals stdenv.isDarwin [ 34 "test_multiprocessing" 35 ]; 36 37 pythonImportsCheck = [ "asgiref" ]; 38 39 meta = with lib; { 40 description = "Reference ASGI adapters and channel layers"; 41 homepage = "https://github.com/django/asgiref"; 42 license = licenses.bsd3; 43 maintainers = with maintainers; [ ]; 44 }; 45}