mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
30 lines
716 B
Nix
30 lines
716 B
Nix
{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
|
|
buildPythonPackage rec {
|
|
version = "3.2.3";
|
|
pname = "asgiref";
|
|
|
|
disabled = pythonOlder "3.5";
|
|
|
|
# PyPI tarball doesn't include tests directory
|
|
src = fetchFromGitHub {
|
|
owner = "django";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "1b8h50wvvby9m17q39kc0ql8a2yvg2f89ii7zrl2phaw0vb9i109";
|
|
};
|
|
|
|
propagatedBuildInputs = [ async-timeout ];
|
|
|
|
checkInputs = [ pytest pytest-asyncio ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Reference ASGI adapters and channel layers";
|
|
license = licenses.bsd3;
|
|
homepage = https://github.com/django/asgiref;
|
|
};
|
|
}
|