2018-08-06 19:30:58 +00:00
|
|
|
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
2017-04-26 12:33:05 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-06 13:36:19 +00:00
|
|
|
version = "3.2.7";
|
2017-05-27 09:25:35 +00:00
|
|
|
pname = "asgiref";
|
2017-04-26 12:33:05 +00:00
|
|
|
|
2018-08-06 19:30:58 +00:00
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
|
2018-02-20 01:28:40 +00:00
|
|
|
# PyPI tarball doesn't include tests directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-04-06 13:36:19 +00:00
|
|
|
sha256 = "1qf29blzhh6sljaj1adc0p8cnyxh9ar6hky9ccdfbgmrk4rw5kwc";
|
2017-04-26 12:33:05 +00:00
|
|
|
};
|
|
|
|
|
2018-02-20 01:28:40 +00:00
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-asyncio ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-04-26 12:33:05 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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 12:33:05 +00:00
|
|
|
};
|
|
|
|
}
|