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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
863 B
Nix
Raw Normal View History

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