2018-02-20 02:28:40 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
2017-04-26 14:33:05 +02:00
|
|
|
buildPythonPackage rec {
|
2018-03-08 23:45:05 +01:00
|
|
|
version = "2.2.0";
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "asgiref";
|
2017-04-26 14:33:05 +02:00
|
|
|
|
2018-02-20 02:28:40 +01:00
|
|
|
# PyPI tarball doesn't include tests directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2018-03-10 15:41:34 +01:00
|
|
|
sha256 = "0jsdkgwzswm1jbfm6d100yfvfzpic8v6ysydcnn798bbpwclj8ip";
|
2017-04-26 14:33:05 +02:00
|
|
|
};
|
|
|
|
|
2018-02-20 02:28:40 +01:00
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-asyncio ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-04-26 14:33:05 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Reference ASGI adapters and channel layers";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/django/asgiref;
|
|
|
|
};
|
|
|
|
}
|