Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 60 lines
Nix
at litex
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061{ lib, stdenv, asgiref, autobahn, buildPythonPackage, django, fetchFromGitHub, hypothesis, pytest-asyncio, pytestCheckHook, pythonOlder, twisted}:
buildPythonPackage rec { pname = "daphne"; version = "4.0.0"; format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "django"; repo = pname; rev = version; hash = "sha256-vPMrmC2B0Pcvk8Y1FsJ4PXnzIMtPod7lL2u0IYNVUxc="; };
propagatedBuildInputs = [ asgiref autobahn twisted ] ++ twisted.optional-dependencies.tls;
nativeCheckInputs = [ django hypothesis pytest-asyncio pytestCheckHook ];
postPatch = '' substituteInPlace setup.py \ --replace "pytest-runner" "" '';
# Most tests fail on darwin doCheck = !stdenv.isDarwin;
pythonImportsCheck = [ "daphne" ];
meta = with lib; { description = "Django ASGI (HTTP/WebSocket) server"; homepage = "https://github.com/django/daphne"; license = licenses.bsd3; maintainers = with maintainers; [ ]; };}