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