Merge pull request #320001 from fabaff/daphne-bump
python311Packages.daphne: 4.0.0 -> 4.1.2
This commit is contained in:
commit
6c83e2c1e8
@ -10,24 +10,32 @@
|
|||||||
pytest-asyncio,
|
pytest-asyncio,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
|
setuptools,
|
||||||
twisted,
|
twisted,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "daphne";
|
pname = "daphne";
|
||||||
version = "4.0.0";
|
version = "4.1.2";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "django";
|
owner = "django";
|
||||||
repo = pname;
|
repo = "daphne";
|
||||||
rev = version;
|
rev = "refs/tags/${version}";
|
||||||
hash = "sha256-vPMrmC2B0Pcvk8Y1FsJ4PXnzIMtPod7lL2u0IYNVUxc=";
|
hash = "sha256-RAK2CaKKVmVIv1MBK+9xyADOrHq664MQOry4KaGTNCw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
postPatch = ''
|
||||||
|
substituteInPlace setup.cfg \
|
||||||
|
--replace-fail "pytest-runner" ""
|
||||||
|
'';
|
||||||
|
|
||||||
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [
|
||||||
asgiref
|
asgiref
|
||||||
autobahn
|
autobahn
|
||||||
twisted
|
twisted
|
||||||
@ -40,11 +48,6 @@ buildPythonPackage rec {
|
|||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
substituteInPlace setup.py \
|
|
||||||
--replace "pytest-runner" ""
|
|
||||||
'';
|
|
||||||
|
|
||||||
# Most tests fail on darwin
|
# Most tests fail on darwin
|
||||||
doCheck = !stdenv.isDarwin;
|
doCheck = !stdenv.isDarwin;
|
||||||
|
|
||||||
@ -52,9 +55,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Django ASGI (HTTP/WebSocket) server";
|
description = "Django ASGI (HTTP/WebSocket) server";
|
||||||
mainProgram = "daphne";
|
|
||||||
homepage = "https://github.com/django/daphne";
|
homepage = "https://github.com/django/daphne";
|
||||||
|
changelog = "https://github.com/django/daphne/blob/${version}/CHANGELOG.txt";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ ];
|
maintainers = with maintainers; [ ];
|
||||||
|
mainProgram = "daphne";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user