2018-08-06 20:30:58 +01:00
|
|
|
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
2017-04-26 13:33:05 +01:00
|
|
|
buildPythonPackage rec {
|
2019-07-16 05:50:02 +01:00
|
|
|
version = "3.1.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
|
|
|
# PyPI tarball doesn't include tests directory
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "django";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-07-16 05:50:02 +01:00
|
|
|
sha256 = "0rmasjrvf083c7855xnggy251gm8vaxyv970b2rd6198h8s3rldh";
|
2017-04-26 13:33:05 +01:00
|
|
|
};
|
|
|
|
|
2018-02-20 01:28:40 +00:00
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytest-asyncio ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
2017-04-26 13:33:05 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Reference ASGI adapters and channel layers";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
homepage = https://github.com/django/asgiref;
|
|
|
|
};
|
|
|
|
}
|