18 buildPythonPackage rec {
23 disabled = pythonOlder "3.8";
25 src = fetchFromGitHub {
28 rev = "refs/tags/${version}";
29 hash = "sha256-RAK2CaKKVmVIv1MBK+9xyADOrHq664MQOry4KaGTNCw=";
33 # https://github.com/django/daphne/pull/526
35 name = "fix-tests-with-Twisted-24.7.0.patch";
36 url = "https://github.com/django/daphne/commit/0370c7a0937011d5345b14d484ec171d3ae9f875.patch";
37 hash = "sha256-/3d2pRcEtGvINGHRQF3RZ8IVIETSZb6rhf+ZHUFSQQo=";
42 substituteInPlace setup.cfg \
43 --replace-fail "pytest-runner" ""
46 build-system = [ setuptools ];
52 ] ++ twisted.optional-dependencies.tls;
61 # Most tests fail on darwin
62 doCheck = !stdenv.hostPlatform.isDarwin;
64 pythonImportsCheck = [ "daphne" ];
67 description = "Django ASGI (HTTP/WebSocket) server";
68 homepage = "https://github.com/django/daphne";
69 changelog = "https://github.com/django/daphne/blob/${version}/CHANGELOG.txt";
70 license = licenses.bsd3;
72 mainProgram = "daphne";