2020-12-30 16:27:13 +00:00
|
|
|
{ stdenv
|
|
|
|
, async-timeout
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest-asyncio
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
2021-01-09 17:36:03 +00:00
|
|
|
, lib
|
2020-12-30 16:27:13 +00:00
|
|
|
}:
|
|
|
|
|
2017-04-26 13:33:05 +01:00
|
|
|
buildPythonPackage rec {
|
2020-12-30 16:27:13 +00:00
|
|
|
version = "3.3.1";
|
2017-05-27 10:25:35 +01:00
|
|
|
pname = "asgiref";
|
2017-04-26 13:33:05 +01:00
|
|
|
|
2018-08-06 20:30:58 +01:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-02-20 01:28:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-30 16:27:13 +00:00
|
|
|
sha256 = "00r4l9x425wkbac6b6c2ksm2yjinrvvdf0ajizrzq32h0jg82016";
|
2017-04-26 13:33:05 +01:00
|
|
|
};
|
|
|
|
|
2018-02-20 01:28:40 +00:00
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
|
2020-12-30 16:27:13 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
pytest-asyncio
|
|
|
|
];
|
2017-04-26 13:33:05 +01:00
|
|
|
|
2021-01-09 17:36:03 +00:00
|
|
|
disabledTests = lib.optionals stdenv.isDarwin [
|
|
|
|
"test_multiprocessing"
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-04-26 13:33:05 +01:00
|
|
|
description = "Reference ASGI adapters and channel layers";
|
|
|
|
license = licenses.bsd3;
|
2020-03-15 15:26:45 +00:00
|
|
|
homepage = "https://github.com/django/asgiref";
|
2017-04-26 13:33:05 +01:00
|
|
|
};
|
|
|
|
}
|