nixpkgs/pkgs/development/python-modules/asgiref/default.nix

30 lines
718 B
Nix
Raw Normal View History

{ stdenv, buildPythonPackage, pythonOlder, fetchFromGitHub, async-timeout, pytest, pytest-asyncio }:
2017-04-26 13:33:05 +01:00
buildPythonPackage rec {
version = "3.2.7";
pname = "asgiref";
2017-04-26 13:33:05 +01:00
disabled = pythonOlder "3.5";
# PyPI tarball doesn't include tests directory
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
sha256 = "1qf29blzhh6sljaj1adc0p8cnyxh9ar6hky9ccdfbgmrk4rw5kwc";
2017-04-26 13:33:05 +01: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";
2017-04-26 13:33:05 +01:00
};
}