3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/daphne/default.nix

36 lines
864 B
Nix
Raw Normal View History

2020-07-06 10:28:11 +01:00
{ stdenv, buildPythonPackage, isPy3k, fetchFromGitHub
, asgiref, autobahn, twisted, pytestrunner
2020-07-06 10:28:11 +01:00
, hypothesis, pytest, pytest-asyncio, service-identity, pyopenssl
2017-02-20 15:31:36 +00:00
}:
buildPythonPackage rec {
pname = "daphne";
2020-07-06 10:28:11 +01:00
version = "2.5.0";
2017-02-20 15:31:36 +00:00
disabled = !isPy3k;
src = fetchFromGitHub {
owner = "django";
repo = pname;
rev = version;
2020-07-06 10:28:11 +01:00
sha256 = "0qkhmblj3a5s3z65cgz46xsvq1b6x4m3kr6aljjnxnv7hcwib02n";
2017-02-20 15:31:36 +00:00
};
nativeBuildInputs = [ pytestrunner ];
2020-07-06 10:28:11 +01:00
propagatedBuildInputs = [ asgiref autobahn twisted service-identity pyopenssl ];
2017-02-20 15:31:36 +00:00
checkInputs = [ hypothesis pytest pytest-asyncio ];
doCheck = !stdenv.isDarwin; # most tests fail on darwin
checkPhase = ''
py.test
'';
2017-02-20 15:31:36 +00:00
meta = with stdenv.lib; {
description = "Django ASGI (HTTP/WebSocket) server";
license = licenses.bsd3;
homepage = "https://github.com/django/daphne";
2017-02-20 15:31:36 +00:00
};
}