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 {
|
2021-04-06 14:46:10 +01:00
|
|
|
version = "3.3.4";
|
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;
|
2021-04-06 14:46:10 +01:00
|
|
|
sha256 = "1rr76252l6p12yxc0q4k9wigg1jz8nsqga9c0nixy9q77zhvh9n2";
|
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
|
|
|
};
|
|
|
|
}
|